From c626658a2803bb48a25b6c845ab60d72be1ed5d4 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Mon, 19 May 2003 02:07:44 +0000 Subject: [PATCH] Let Python inform the user what went wrong with the import. Modified Files: idle idle.py idle.pyw --- Lib/idlelib/idle | 2 +- Lib/idlelib/idle.py | 2 +- Lib/idlelib/idle.pyw | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 449fb0ec90a..3b08cae2347 100755 --- a/Lib/idlelib/idle +++ b/Lib/idlelib/idle @@ -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__)) diff --git a/Lib/idlelib/idle.py b/Lib/idlelib/idle.py index 449fb0ec90a..3b08cae2347 100644 --- a/Lib/idlelib/idle.py +++ b/Lib/idlelib/idle.py @@ -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__)) diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 2a61720b40f..767db865a55 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -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__))