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