fix console: python3 exec

This commit is contained in:
ThomasV 2017-09-25 23:33:11 +02:00
parent 6e936db94a
commit e91aa882ba
1 changed files with 1 additions and 1 deletions

View File

@ -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: