3
0
Fork 0
forked from mirrors/nixpkgs

insert pth eggs at index of site-packages they come from

thx Rok Garbas!

svn path=/nixpkgs/branches/stdenv-updates/; revision=32584
This commit is contained in:
Florian Friesdorf 2012-02-26 17:23:13 +00:00
parent d52e2c7c41
commit 59d4678e83

View file

@ -45,6 +45,7 @@ def __boot():
sys.__egginsert = 0 # and reset the current one
for item in PYTHONPATH:
sys.__egginsert = sys.path.index(os.path.abspath(item))
addsitedir(item)
sys.__egginsert += oldpos # restore effective old position