diff options
Diffstat (limited to 'Lib/idlelib/idle')
-rwxr-xr-x | Lib/idlelib/idle | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 8638a165b4..131e8d3694 100755 --- a/Lib/idlelib/idle +++ b/Lib/idlelib/idle @@ -1,4 +1,9 @@ #! /usr/bin/env python -import PyShell -PyShell.main() +try: + import idlelib.PyShell + idlelib.PyShell.main() +except: + # IDLE is not installed, but maybe PyShell is on sys.path: + import PyShell + PyShell.main() |