- some minor changes in the Python version detection

- added a new Tcl Command named SetPath which will set a path to be used by the Tcl commands. Once set will serve as a fallback path in case that the files fail to be opened first time. It will be persistent, saved in preferences.
- added the GUI for the new Open Example in the FIle -> Scripting menu.
- I am modifying all the open ... handlers to add a parameter that will flag if the method was launched from Tcl Shell. This way if the method will fail to open the filename (which include the path) it will try to open from a set fallback path.
- fixed issue #406, bug introduced recently (leftover changes).
- modified the ImportSVG Tcl command name to OpenSVG (open_svg alias)
- added a new Tcl command named OpenDXF (open_dxf alias)
- fixed some errors in Scripting features
- added a new Tcl command named GetPath as a convenient way to get the current default path stored in App.defaults['global_tcl_path']
This commit is contained in:
Marius Stanciu
2020-04-28 14:37:34 +03:00
committed by Marius
parent 37924303cd
commit eed7e3d620
21 changed files with 575 additions and 148 deletions

View File

@@ -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)
self.app.open_project(filename, cli=True, plot=False, from_tcl=True)