##// END OF EJS Templates
- Fixes to sys.path to better match a plain Python console.
- Fixes to sys.path to better match a plain Python console.

File last commit:

r414:2e0f6adf
r414:2e0f6adf
Show More
ipython.py
18 lines | 606 B | text/x-python | PythonLexer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IPython -- An enhanced Interactive Python
The actual ipython script to be installed with 'python setup.py install' is
in './scripts' directory. This file is here (ipython source root directory)
to facilitate non-root 'zero-installation' (just copy the source tree
somewhere and run ipython.py) and development. """
# Start by cleaning up sys.path: Python automatically inserts the script's
# base directory into sys.path, at the front. This can lead to unpleasant
# surprises.
import sys
sys.path.pop(0)
import IPython
IPython.Shell.start().mainloop()