From: Robin Dunn Date: Mon, 27 May 2002 22:14:41 +0000 (+0000) Subject: No, I didn't test it before. This is what I meant to do! X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8641d30c71c774ef39c5adceb3adc039e12c34e0 No, I didn't test it before. This is what I meant to do! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/PyCrust.py b/wxPython/demo/PyCrust.py index feaf9df92e..4d2ae22b32 100644 --- a/wxPython/demo/PyCrust.py +++ b/wxPython/demo/PyCrust.py @@ -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])]) diff --git a/wxPython/demo/wxFileHistory.py b/wxPython/demo/wxFileHistory.py index 571cb8e9fa..8847e2f679 100644 --- a/wxPython/demo/wxFileHistory.py +++ b/wxPython/demo/wxFileHistory.py @@ -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])]) diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py index eda5e882e9..0f082c2ca9 100644 --- a/wxPython/demo/wxStyledTextCtrl_1.py +++ b/wxPython/demo/wxStyledTextCtrl_1.py @@ -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])]) diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index ee705e4c26..a2ab5548f1 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -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])])