From 887dfc146ffd1c0d64afbb2fc9ad14a4f18ba60b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 26 Jan 2004 22:45:58 +0000 Subject: [PATCH] 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 --- wxPython/demo/run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)