printrun-src/printrun/pronterface.py

changeset 31
92035ebc4743
parent 29
c96f20e95029
child 33
eee51ca7cbe7
--- a/printrun-src/printrun/pronterface.py	Fri Jul 28 16:05:08 2017 +0200
+++ b/printrun-src/printrun/pronterface.py	Fri Sep 22 17:38:36 2017 +0200
@@ -2,12 +2,15 @@
 
 # FILE MODIFIED BY NEOSOFT - MALTE DI DONATO
 # Embed Lasercut functions from laser.py 
-import laser
+from . import laser
 try:
-    from module_watcher import ModuleWatcher
-    mw = ModuleWatcher()
+    from . import module_watcher
+    mw = module_watcher.ModuleWatcher()
     mw.watch_module('laser')
     mw.start_watching()
+except Exception, e:
+    print e
+    print "ModuleWatcher not loaded, skipping autoreloading of changed modules"
 
 # This file is part of the Printrun suite.
 #

mercurial