diff --git a/pkgs/development/python-modules/site/site.py b/pkgs/development/python-modules/site/site.py index b233222e1f62..073484727db3 100644 --- a/pkgs/development/python-modules/site/site.py +++ b/pkgs/development/python-modules/site/site.py @@ -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