Fri, 22 Sep 2017 17:38:36 +0200
ModuleWatcher code embed, doesnt work on windows os
printrun-src/printrun/pronterface.py | file | annotate | diff | comparison | revisions |
--- 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. #