Author: chaoflow
Date: Sun Feb 26 17:23:13 2012
New Revision: 32584
URL: https://nixos.org/websvn/nix/?rev=32584&sc=1

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

thx Rok Garbas!

Modified:
   nixpkgs/branches/stdenv-updates/pkgs/development/python-modules/site/site.py

Modified: 
nixpkgs/branches/stdenv-updates/pkgs/development/python-modules/site/site.py
==============================================================================
--- 
nixpkgs/branches/stdenv-updates/pkgs/development/python-modules/site/site.py    
    Sun Feb 26 17:23:09 2012        (r32583)
+++ 
nixpkgs/branches/stdenv-updates/pkgs/development/python-modules/site/site.py    
    Sun Feb 26 17:23:13 2012        (r32584)
@@ -45,6 +45,7 @@
     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
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to