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