- disabled a skip_quotes method in ToolShell.FCShell class so I can now use quotes to enclose file paths with spaces inside

This commit is contained in:
Marius Stanciu
2020-04-28 21:08:40 +03:00
committed by Marius
parent 35674c9647
commit 907e4bc6d9
7 changed files with 29 additions and 30 deletions

View File

@@ -53,9 +53,9 @@ class TclCommandOpenExcellon(TclCommandSignaled):
filename = args.pop('filename')
if ' ' in filename:
return "The absolute path to the project file contain spaces which is not allowed.\n" \
"Please enclose the path within quotes."
# if ' ' in filename:
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
# "Please enclose the path within quotes."
args['plot'] = False
args['from_tcl'] = True

View File

@@ -53,8 +53,8 @@ class TclCommandOpenGCode(TclCommandSignaled):
args['plot'] = False
args['from_tcl'] = True
filename = args["filename"]
if ' ' in filename:
return "The absolute path to the project file contain spaces which is not allowed.\n" \
"Please enclose the path within quotes."
# if ' ' in filename:
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
# "Please enclose the path within quotes."
self.app.open_gcode(filename, **args)

View File

@@ -55,10 +55,6 @@ class TclCommandOpenGerber(TclCommandSignaled):
filename = args.pop('filename')
if ' ' in filename:
return "The absolute path to the project file contain spaces which is not allowed.\n" \
"Please enclose the path within quotes."
if 'outname' in args:
outname = args['outname']
else:

View File

@@ -49,8 +49,8 @@ class TclCommandOpenProject(TclCommandSignaled):
:return: None or exception
"""
filename = args['filename']
if ' ' in filename:
return "The absolute path to the project file contain spaces which is not allowed.\n" \
"Please enclose the path within quotes."
# if ' ' in filename:
# return "The absolute path to the project file contain spaces which is not allowed.\n" \
# "Please enclose the path within quotes."
self.app.open_project(filename, cli=True, plot=False, from_tcl=True)