- fixed an issue with path conversion when using Windows-style of paths in the 'set_path' Tcl command
This commit is contained in:
@@ -250,7 +250,8 @@ class ScriptObject(FlatCAMObj):
|
||||
# if FlatCAM is run in Windows then replace all the slashes with
|
||||
# the UNIX style slash that TCL understands
|
||||
if sys.platform == 'win32':
|
||||
if "open" in tcl_command_line:
|
||||
tcl_command_line_lowered = tcl_command_line.lower()
|
||||
if "open" in tcl_command_line_lowered or "path" in tcl_command_line_lowered:
|
||||
tcl_command_line = tcl_command_line.replace('\\', '/')
|
||||
|
||||
if old_line != '':
|
||||
|
||||
Reference in New Issue
Block a user