try:
import idlelib.PyShell
- idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
+else:
+ idlelib.PyShell.main()
try:
import idlelib.PyShell
- idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
+else:
+ idlelib.PyShell.main()
try:
import idlelib.PyShell
- idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
+else:
+ idlelib.PyShell.main()