Skip to content

Instantly share code, notes, and snippets.

@seyDoggy
Created December 12, 2012 21:53
Show Gist options
  • Save seyDoggy/4271973 to your computer and use it in GitHub Desktop.
Save seyDoggy/4271973 to your computer and use it in GitHub Desktop.
contents of easy-install.pth
import sys; sys.__plen = len(sys.path)
./numpydoc-0.4-py2.7.egg
./Sphinx-1.1.3-py2.7.egg
./docutils-0.9.1-py2.7.egg
./Jinja2-2.6-py2.7.egg
./Pygments-1.5-py2.7.egg
./PyYAML-3.10-py2.7-macosx-10.8-intel.egg
./CherryPy-3.2.2-py2.7.egg
/usr/local/lib/python2.7/site-packages
./go-1.2.1-py2.7.egg
./python_magic-0.4.2-py2.7.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment