# HG changeset patch # User mdd # Date 1506094716 -7200 # Node ID 92035ebc474303a3f519fda26e1dcb3bbd57d33c # Parent 9188235e3bbf994b903bc7e10d20bfb9ea8419f1 ModuleWatcher code embed, doesnt work on windows os diff -r 9188235e3bbf -r 92035ebc4743 printrun-src/printrun/pronterface.py --- 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. #