From ea95c0c759f90d5204d9d599d88e36663e75086e Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 19 Sep 2019 04:41:03 +0300 Subject: [PATCH] - fixed the command line argument --shellvar to work when there are spaces in the argument value --- FlatCAMApp.py | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 416596b0..068631d0 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -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 diff --git a/README.md b/README.md index 837f738c..ee4e3f12 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ CAD program, and create G-Code for Isolation routing. - updated some of the default values to more reasonable ones - FlatCAM can be run in HEADLESS mode now. This mode can be selected by using the --headless=1 command line argument or by changing the line headless=False to True in config/configuration.txt file. In this mod the Sys Tray Icon menu will hold only the Run Scrip menu entry and Exit entry. - added a new TclCommand named quit_flatcam which will ... quit FlatCAM from Tcl Shell or from a script +- fixed the command line argument --shellvar to work when there are spaces in the argument value 18.09.2019