- fixed some of the Tcl Commands that depended on the methods refactored above
This commit is contained in:
@@ -57,3 +57,5 @@ class TclCommandGetSys(TclCommand):
|
||||
|
||||
if name in self.app.defaults:
|
||||
return self.app.defaults[name]
|
||||
else:
|
||||
return "The keyword: %s does not exist as a parameter" % str(name)
|
||||
|
||||
@@ -59,4 +59,4 @@ class TclCommandOpenExcellon(TclCommandSignaled):
|
||||
|
||||
args['plot'] = False
|
||||
args['from_tcl'] = True
|
||||
self.app.open_excellon(filename, **args)
|
||||
self.app.f_handlers.open_excellon(filename, **args)
|
||||
|
||||
@@ -58,4 +58,4 @@ class TclCommandOpenGCode(TclCommandSignaled):
|
||||
# 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)
|
||||
self.app.f_handlers.open_gcode(filename, **args)
|
||||
|
||||
@@ -62,4 +62,4 @@ class TclCommandOpenGerber(TclCommandSignaled):
|
||||
|
||||
args['plot'] = False
|
||||
args['from_tcl'] = True
|
||||
self.app.open_gerber(filename, outname, **args)
|
||||
self.app.f_handlers.open_gerber(filename, outname, **args)
|
||||
|
||||
@@ -53,4 +53,4 @@ class TclCommandOpenProject(TclCommandSignaled):
|
||||
# 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)
|
||||
self.app.f_handlers.open_project(filename, cli=True, plot=False, from_tcl=True)
|
||||
|
||||
Reference in New Issue
Block a user