]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/py/shell.py
Check for errors after unicode conversions
[wxWidgets.git] / wxPython / wx / py / shell.py
index 841a0e47e67fcf72b338a72cf63e6e581879aaa5..2232fd59b041682790d685ef3ea2df4a054106b1 100644 (file)
@@ -179,7 +179,8 @@ class Shell(editwindow.EditWindow):
         editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
         self.wrap()
         if locals is None:
-            locals = {}
+            import __main__
+            locals = __main__.__dict__
         # Grab these so they can be restored by self.redirect* methods.
         self.stdin = sys.stdin
         self.stdout = sys.stdout