- fixed the command line argument --shellvar to work when there are spaces in the argument value

This commit is contained in:
Marius Stanciu
2019-09-19 04:41:03 +03:00
committed by Marius
parent a706fd9f1e
commit ea95c0c759
2 changed files with 2 additions and 1 deletions

View File

@@ -2522,7 +2522,7 @@ class App(QtCore.QObject):
except:
command_tcl = i
command_tcl_formatted = 'set shellvar_{nr} {cmd}'.format(cmd=str(command_tcl), nr=str(cnt))
command_tcl_formatted = 'set shellvar_{nr} [list {cmd}]'.format(cmd=str(command_tcl), nr=str(cnt))
cnt += 1
# if there are Windows paths then replace the path separator with a Unix like one