From e91aa882ba4b5e556b5bff519213eac4cf4eafa2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 25 Sep 2017 23:33:11 +0200 Subject: [PATCH] fix console: python3 exec --- gui/qt/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/console.py b/gui/qt/console.py index b3f51f58..4fb7e015 100644 --- a/gui/qt/console.py +++ b/gui/qt/console.py @@ -224,7 +224,7 @@ class Console(QtWidgets.QPlainTextEdit): self.appendPlainText(repr(result)) except SyntaxError: # exec is generally considered bad practice. use it wisely! - exec(command) in self.namespace + exec(command, self.namespace, self.namespace) except SystemExit: self.close() except Exception: