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

Modified Files:
 	idle idle.py idle.pyw
This commit is contained in:
Kurt B. Kaiser 2003-05-19 02:07:44 +00:00
parent 415da6e0b2
commit c626658a28
3 changed files with 3 additions and 3 deletions

View 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__))

View file

@ -7,7 +7,7 @@
try:
import PyShell
except ImportError:
print "Can't locate PyShell.py"
raise
else:
import os
idledir = os.path.dirname(os.path.abspath(PyShell.__file__))

View 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__))