Kaydet (Commit) c626658a authored tarafından 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
üst 415da6e0
......@@ -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