Merge remote-tracking branch 'origin/python3' into python3
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 17 Dec 2024 21:18:40 +0100 (2 months ago)
changeset 4077 03ed01134858
parent 4075 69114ac20de8 (diff)
parent 4076 86ad03993ae9 (current diff)
child 4078 5a1593e27171
child 4086 0f5a69ab57a1
Merge remote-tracking branch 'origin/python3' into python3
--- a/svghmi/svghmi.py	Tue Dec 17 14:04:11 2024 +0100
+++ b/svghmi/svghmi.py	Tue Dec 17 21:18:40 2024 +0100
@@ -642,7 +642,7 @@
         res += ((target_fname, open(target_path, "rb")),)
 
         svghmi_cmds = {}
-        suppress_output = not(self.GetParamsAttributes("SVGHMI.SuppressBrowserOutput")["value"])
+        suppress_output = self.GetParamsAttributes("SVGHMI.SuppressBrowserOutput")["value"]
         stdstream = "subprocess.DEVNULL" if suppress_output else "None"
         for thing in ["Start", "Stop", "Watchdog"]:
              given_command = self.GetParamsAttributes("SVGHMI.On"+thing)["value"]