Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix all imports within klippy to be relative, or absolute klippy.mod
For compatibility with external
extras
that will probably still use the old import names (e.g. a bareimport stepper
instead offrom klippy import stepper
), klippy/compat.py hot patchessys.modules
before starting the Printer reactor. Any module currently insys.modules
under theklippy.
package namespace are inserted a second time with the leading namespace stripped.klippy.xxx
being used,klippy/__init__.py
doesfrom klippy.printer import *
, ensuring all legacy values existFor compatibility with running
python klippy/klippy.py
(every current printer's systemd service, as well as any KIAUH install), a shimklippy/klippy.py
is in place that patchessys.path
before importing and callingklippy.printer.main()
Checklist
python klippy/klippy.py
still works, andscripts/test-klippy.py
uses the newpython -m klippy