]> git.saurik.com Git - wxWidgets.git/commitdiff
No, I didn't test it before. This is what I meant to do!
authorRobin Dunn <robin@alldunn.com>
Mon, 27 May 2002 22:14:41 +0000 (22:14 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 27 May 2002 22:14:41 +0000 (22:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/PyCrust.py
wxPython/demo/wxFileHistory.py
wxPython/demo/wxStyledTextCtrl_1.py
wxPython/demo/wxStyledTextCtrl_2.py

index feaf9df92ec468ae178d88dee9e4e4812f36d91c..4d2ae22b32d3a29369e4462772443830d7b47deb 100644 (file)
@@ -17,6 +17,7 @@ overview = shell.__doc__
 
 
 if __name__ == '__main__':
+    import sys,os
     import run
-    run.main(['', 'PyCrust'])
+    run.main(['', os.path.basename(sys.argv[0])])
 
index 571cb8e9facbb1950272a923ca0c15a6c97d9cb5..8847e2f6792a628b44b45b332b35875314993826 100644 (file)
@@ -118,7 +118,7 @@ list appended to a menu, such as the File menu.
 """
 
 if __name__ == '__main__':
-    import os
+    import sys,os
     import run
-    run.main(['', os.path.basename(__file__)])
+    run.main(['', os.path.basename(sys.argv[0])])
 
index eda5e882e9886d648d02f1040cf2c6fff6130e49..0f082c2ca9e656de437d163abc9e0b0f42e69067 100644 (file)
@@ -269,7 +269,7 @@ be helpful.
 
 
 if __name__ == '__main__':
-    import os
+    import sys,os
     import run
-    run.main(['', os.path.basename(__file__)])
+    run.main(['', os.path.basename(sys.argv[0])])
 
index ee705e4c2632136eaa42517f0872224247009928..a2ab5548f15b5789743173fd4780fbafa95d8791 100644 (file)
@@ -333,9 +333,9 @@ be helpful.
 
 
 if __name__ == '__main__':
-    import os
+    import sys,os
     import run
-    run.main(['', os.path.basename(__file__)])
+    run.main(['', os.path.basename(sys.argv[0])])