##// END OF EJS Templates
Remove accidental debug crap from ipython.py
Remove accidental debug crap from ipython.py

File last commit:

r798:e21ca547
r799:33dc0a15
Show More
ipy_kitcfg.py
30 lines | 606 B | text/x-python | PythonLexer
import os,sys
def selflaunch(line):
""" Launch python script with 'this' interpreter
e.g. d:\foo\ipython.exe a.py
"""
cmd = sys.executable + ' ' + line.split(None,1)[1]
print ">",cmd
os.system(cmd)
def main():
import IPython.ipapi
ip = IPython.ipapi.get()
root = os.environ.get('IPYKITROOT', None)
if not root:
print "Can't configure ipykit, IPYKITROOT should be set."
return
os.environ["PATH"] = os.environ["PATH"] + ";" + root + "\\bin;"
ip.defalias('py',selflaunch)
main()