- fixed issue with trying to access GUI from different threads by adding a new signal for printing to shell messages
This commit is contained in:
@@ -79,18 +79,16 @@ class TclCommandSetPath(TclCommand):
|
||||
"The provided path",
|
||||
str(path),
|
||||
"is a path to file and not a directory as expected.")
|
||||
self.app.shell_message(msg, success=True, show=False)
|
||||
self.app.inform_shell.emit(msg)
|
||||
return "Failed. The Tcl command set_path was used but it was not a directory."
|
||||
else:
|
||||
msg = '[ERROR] %s: %s, %s' % (
|
||||
"The provided path",
|
||||
str(path),
|
||||
"do not exist. Check for typos.")
|
||||
self.app.shell_message(msg, success=True, show=False)
|
||||
"The provided path", str(path), "do not exist. Check for typos.")
|
||||
self.app.inform_shell.emit(msg)
|
||||
return "Failed. The Tcl command set_path was used but it does not exist."
|
||||
|
||||
cd_command = 'cd %s' % path
|
||||
self.app.shell.exec_command(cd_command, no_echo=False)
|
||||
self.app.defaults["global_tcl_path"] = str(path)
|
||||
msg = '[success] %s: %s' % ("Relative path set to", str(path))
|
||||
self.app.shell_message(msg, success=True, show=False)
|
||||
self.app.inform_shell.emit(msg)
|
||||
|
||||
Reference in New Issue
Block a user