svghmi/svghmi.py
branchwxPython4
changeset 3379 c3d462118d37
parent 3344 4a08728a2ea4
parent 3375 aa25c89a8845
child 3405 fdc12f7d27c8
--- a/svghmi/svghmi.py	Fri Oct 22 12:48:22 2021 +0200
+++ b/svghmi/svghmi.py	Fri Oct 29 18:20:03 2021 +0200
@@ -523,7 +523,7 @@
 
         build_path = self._getBuildPath()
         target_path = os.path.join(build_path, target_fname)
-        hash_path = os.path.join(build_path, "svghmi.md5")
+        hash_path = os.path.join(build_path, "svghmi_"+location_str+".md5")
 
         self.GetCTRoot().logger.write("SVGHMI:\n")
 
@@ -608,6 +608,9 @@
 """)
             target_file.close()
 
+            # In case no SVG is given, watchdog is useless
+            svghmi_options["enable_watchdog"] = False
+
         res += ((target_fname, open(target_path, "rb")),)
 
         svghmi_cmds = {}