- 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

@@ -166,9 +166,6 @@ class TclCommand(object):
Pre-processes arguments to detect '-keyword value' pairs into dictionary
and standalone parameters into list.
This is copy from FlatCAMApp.setup_shell().h() just for accessibility,
original should be removed after all commands will be converted
:param args: arguments from tcl to parse
:return: arguments, options
"""
@@ -189,10 +186,11 @@ class TclCommand(object):
option_name = match.group(1)
continue
init_arg = args[i]
if option_name is None:
arguments.append(args[i])
arguments.append(init_arg)
else:
options[option_name] = args[i]
options[option_name] = init_arg
option_name = None
if option_name is not None: