- fixed an issue with path conversion when using Windows-style of paths in the 'set_path' Tcl command

This commit is contained in:
Marius Stanciu
2022-01-17 23:37:28 +02:00
committed by Marius
parent 2430158334
commit c08acc79eb
3 changed files with 6 additions and 6 deletions

View File

@@ -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 != '':