Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
freundTech committed May 4, 2021
1 parent e686737 commit 6f50ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/virtualenv/create/via_global_ref/builtin/python2/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def rewrite_getsitepackages():
def getsitepackages():
sitepackages = orig_getsitepackages()
for prefix in (sys.prefix, sys.exec_prefix):
path = os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages")
# os is not defined here, but will be in site.py, where we monkey-patch this function.
path = os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages") # noqa: F821
if path not in sitepackages:
sitepackages.insert(0, path)

Expand Down

0 comments on commit 6f50ebf

Please sign in to comment.