Skip to content

Commit

Permalink
Merge pull request #464 from citrus-it/pkgdepend
Browse files Browse the repository at this point in the history
Traceback from pkgdepend after six removal
  • Loading branch information
hadfl authored Dec 23, 2023
2 parents 37f906b + ce5c816 commit 0402b9e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/modules/site_paths/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@
import os, sys


def strip_zip():
sys.path = [d for d in sys.path if not d.endswith(".zip")]


def strip_site():
strip = getsitepackages()
strip.append(getusersitepackages())
sys.path = [
d for d in sys.path if d not in strip and not d.endswith(".zip")
]
sys.path = [d for d in sys.path if d not in strip]


def add_pkglib():
strip_zip()
# If PYTHONPATH is set in the environment and the environment is not
# being ignored, then don't adjust the path. This could, for example,
# be running under the testsuite.
Expand Down

0 comments on commit 0402b9e

Please sign in to comment.