mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
webhooks: Introduce add_early_printer_objects()
Create the initial gcode class via new module level add_early_printer_objects() function. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8c8b9b1812
commit
4346d37c06
2 changed files with 6 additions and 2 deletions
|
@ -58,8 +58,9 @@ class Printer:
|
|||
self.run_result = None
|
||||
self.event_handlers = {}
|
||||
self.objects = collections.OrderedDict()
|
||||
self.objects['webhooks'] = webhooks.WebHooks(self)
|
||||
gcode.add_early_printer_objects(self)
|
||||
# Init printer components that must be setup prior to config
|
||||
for m in [webhooks, gcode]:
|
||||
m.add_early_printer_objects(self)
|
||||
def get_start_args(self):
|
||||
return self.start_args
|
||||
def get_reactor(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue