Browse Source

fix console: python3 exec

seed_v14
ThomasV 7 years ago
parent
commit
e91aa882ba
  1. 2
      gui/qt/console.py

2
gui/qt/console.py

@ -224,7 +224,7 @@ class Console(QtWidgets.QPlainTextEdit):
self.appendPlainText(repr(result)) self.appendPlainText(repr(result))
except SyntaxError: except SyntaxError:
# exec is generally considered bad practice. use it wisely! # exec is generally considered bad practice. use it wisely!
exec(command) in self.namespace exec(command, self.namespace, self.namespace)
except SystemExit: except SystemExit:
self.close() self.close()
except Exception: except Exception:

Loading…
Cancel
Save