Improve exception handling.
This commit is contained in:
parent
13af1142fc
commit
7cca3d8ef0
@ -1,9 +1,9 @@
|
||||
#! /usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
import idlelib.PyShell
|
||||
idlelib.PyShell.main()
|
||||
except:
|
||||
except ImportError:
|
||||
# IDLE is not installed, but maybe PyShell is on sys.path:
|
||||
import PyShell
|
||||
PyShell.main()
|
||||
|
@ -1,9 +1,9 @@
|
||||
#! /usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
import idlelib.PyShell
|
||||
idlelib.PyShell.main()
|
||||
except:
|
||||
except ImportError:
|
||||
# IDLE is not installed, but maybe PyShell is on sys.path:
|
||||
import PyShell
|
||||
PyShell.main()
|
||||
|
@ -1,9 +1,9 @@
|
||||
#! /usr/bin/env python
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
import idlelib.PyShell
|
||||
idlelib.PyShell.main()
|
||||
except:
|
||||
except ImportError:
|
||||
# IDLE is not installed, but maybe PyShell is on sys.path:
|
||||
import PyShell
|
||||
PyShell.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user