##// END OF EJS Templates
Prevent forced reloading of doctest which was breaking lots of tests....
Prevent forced reloading of doctest which was breaking lots of tests. This was the very hard to track source of many test problems. The doctest_reload() function name wasn't changed, but it doesn't actually do reload(doctest) anymore. This is sufficient to clean a large number of test errors in one shot.

File last commit:

r1049:c87d640e
r2090:4532d59c
Show More
ipykit.py
21 lines | 627 B | text/x-python | PythonLexer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" IPykit launcher
w/o args, this launches a full ipykit session.
If the first arg is a .py script, it will be run WITHOUT ipython,
to facilitate running python scripts almost normally on machines w/o python
in their own process (as opposed to %run).
"""
import sys
if len(sys.argv) > 1 and sys.argv[1].endswith('.py'):
# shortcut for running ipykit.exe directly on a .py file - do not bother
# starting ipython, just handle as normal python scripts
sys.argv = sys.argv[1:]
execfile(sys.argv[0])
else:
import IPython
IPython.Shell.start().mainloop()