]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/Main.py
Reverted changes to grid line positioning that caused many problems
[wxWidgets.git] / utils / wxPython / demo / Main.py
index c9d1c047c9f41a3fb15a6fe5b62ae8d7265e029e..e82eee115c8a9934cc63162da2f770e997453708 100644 (file)
@@ -383,6 +383,11 @@ class MyApp(wxApp):
 #---------------------------------------------------------------------------
 
 def main():
+    try:
+        demoPath = os.path.split(__file__)[0]
+        os.chdir(demoPath)
+    except:
+        pass
     app = MyApp(0)
     app.MainLoop()