Commit fde23a56 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

Let Python inform the user what went wrong with the import.

 Modified Files:
 	idle idle.py idle.pyw
parent 3dcf2db8
......@@ -7,7 +7,7 @@ except ImportError:
try:
import PyShell
except ImportError:
print "Can't locate PyShell.py"
raise
else:
import os
idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
......
......@@ -7,7 +7,7 @@ except ImportError:
try:
import PyShell
except ImportError:
print "Can't locate PyShell.py"
raise
else:
import os
idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
......
......@@ -5,7 +5,7 @@ except ImportError:
try:
import PyShell
except ImportError:
print "Can't locate PyShell.py"
raise
else:
import os
idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment