diff options
Diffstat (limited to 'Lib/idlelib/idle.pyw')
-rw-r--r-- | Lib/idlelib/idle.pyw | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 8638a16..131e8d3 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -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() |