From: Robin Dunn Date: Mon, 26 Jan 2004 22:45:58 +0000 (+0000) Subject: Remove all extensions before inport, not just .py X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/887dfc146ffd1c0d64afbb2fc9ad14a4f18ba60b Remove all extensions before inport, not just .py git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index 99d76f5745..fda545c5b0 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -115,9 +115,7 @@ def main(argv): print "Please specify a demo module name on the command-line" raise SystemExit - name = argv[1] - if name[-3:] == '.py': - name = name[:-3] + name, ext = os.path.splitext(argv[1]) module = __import__(name)