mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Conditionally start ipython.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import os, IPython
|
||||
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
|
||||
IPython.start_ipython()
|
||||
raise SystemExit
|
||||
try:
|
||||
import os, IPython
|
||||
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
|
||||
IPython.start_ipython()
|
||||
raise SystemExit
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user