##// END OF EJS Templates
Fixing subtle bug in expanduser(expandvars(path)) on Windows....
Fixing subtle bug in expanduser(expandvars(path)) on Windows. On Windows, some paths can have the string $\ in them: \\server\users$\%username%. The "$" means it is a hidden share. Unfortunately, os.path.expandvars turns that into: \\server\users\%username% (it deletes the '$'). I have implemented a simple function (expand_path) that calls os.expanduser and os.expandvars in a way that preserves th '$' on Windows in this case.

File last commit:

r2280:e44b3bbd
r2324:811a55ae
Show More
ipython.py
12 lines | 440 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. """
from IPython.core.ipapp import launch_new_instance
launch_new_instance()