diff -r ccf7461e8ff2 -r 38bebb9ee34e svghmi/svghmi.py --- a/svghmi/svghmi.py Thu Aug 15 23:23:56 2024 +0200 +++ b/svghmi/svghmi.py Thu Aug 15 23:50:01 2024 +0200 @@ -643,10 +643,11 @@ svghmi_cmds = {} for thing in ["Start", "Stop", "Watchdog"]: given_command = self.GetParamsAttributes("SVGHMI.On"+thing)["value"] + args = shlex.split(given_command.format(**svghmi_options)) svghmi_cmds[thing] = ( "Popen(" + - repr(shlex.split(given_command.format(**svghmi_options))) + - ")") if given_command else "None # no command given" + repr(args) + + ")") if args else "None # no command given" runtimefile_path = os.path.join(buildpath, "runtime_%s_svghmi_.py" % location_str) runtimefile = open(runtimefile_path, 'w')