From e4f3f60ea659a63feee01d74003670abf6631103 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 9 Aug 2020 08:36:02 -0400 Subject: [PATCH] virtual_sdcard: register sd static path Signed-off-by: Eric Callahan --- klippy/extras/virtual_sdcard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/klippy/extras/virtual_sdcard.py b/klippy/extras/virtual_sdcard.py index 7ab58654..d1abf1be 100644 --- a/klippy/extras/virtual_sdcard.py +++ b/klippy/extras/virtual_sdcard.py @@ -35,6 +35,9 @@ class VirtualSD: self.gcode.register_command( "SDCARD_PRINT_FILE", self.cmd_SDCARD_PRINT_FILE, desc=self.cmd_SDCARD_PRINT_FILE_help) + # Register sd path + webhooks = printer.lookup_object('webhooks') + webhooks.register_static_path("sd_path", self.sdcard_dirname) def handle_shutdown(self): if self.work_timer is not None: self.must_pause_work = True