commit e91aa882ba4b5e556b5bff519213eac4cf4eafa2
parent 6e936db94a028068eaabf4ddb983a2e012abdacd
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 25 Sep 2017 23:33:11 +0200
fix console: python3 exec
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: