Skip to content

Commit

Permalink
Consider files in pip-global to be library files. Fixes microsoft#664
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Jul 23, 2021
1 parent ae22e5e commit 8c3f0c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _get_default_library_roots(cls):
roots.append(site_paths)

for path in sys.path:
if os.path.exists(path) and os.path.basename(path) == 'site-packages':
if os.path.exists(path) and os.path.basename(path) in ('site-packages', 'pip-global'):
roots.append(path)

roots.extend([os.path.realpath(path) for path in roots])
Expand Down

0 comments on commit 8c3f0c8

Please sign in to comment.