##// 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:

r2119:2c8c96be
r2324:811a55ae
Show More
setupegg.py
12 lines | 297 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Wrapper to run setup.py using setuptools."""
import sys
# now, import setuptools and call the actual setup
import setuptools
execfile('setup.py')
# clean up the junk left around by setuptools
if "develop" not in sys.argv:
os.system('rm -rf ipython.egg-info build')