diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-21 05:55:44 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-21 05:55:44 -0400 |
| commit | cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7 (patch) | |
| tree | 1551248b2a29b34b26388ea68fe994854f3e84e2 /setuptools/site-patch.py | |
| parent | 7843688bc33dd4e13e10130bc49da4c290fe7d7f (diff) | |
| parent | 060445bfb557a1d0f6b726716dafa6bacaa44c34 (diff) | |
| download | python-setuptools-git-cfbefe5715e31db3c8cac70f7a1cd1c16fd4b5a7.tar.gz | |
Merge branch 'master' into jorikdima-master
Diffstat (limited to 'setuptools/site-patch.py')
| -rw-r--r-- | setuptools/site-patch.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/site-patch.py b/setuptools/site-patch.py index 40b00de0..be0d43d3 100644 --- a/setuptools/site-patch.py +++ b/setuptools/site-patch.py @@ -38,22 +38,24 @@ def __boot(): else: raise ImportError("Couldn't find the real 'site' module") - known_paths = dict([(makepath(item)[1], 1) for item in sys.path]) # 2.2 comp + # 2.2 comp + known_paths = dict([( + makepath(item)[1], 1) for item in sys.path]) # noqa oldpos = getattr(sys, '__egginsert', 0) # save old insertion position sys.__egginsert = 0 # and reset the current one for item in PYTHONPATH: - addsitedir(item) + addsitedir(item) # noqa sys.__egginsert += oldpos # restore effective old position - d, nd = makepath(stdpath[0]) + d, nd = makepath(stdpath[0]) # noqa insert_at = None new_path = [] for item in sys.path: - p, np = makepath(item) + p, np = makepath(item) # noqa if np == nd and insert_at is None: # We've hit the first 'system' path entry, so added entries go here |
