Skip to content

Commit

Permalink
Fix sys.path stripping under testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Dec 27, 2023
1 parent 6e6d562 commit 95c26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/site_paths/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def strip_site():


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 All @@ -55,6 +54,7 @@ def add_pkglib():
return
import platform

strip_zip()
sys.path, remainder = sys.path[:2], sys.path[2:]
addsitedir(
"/usr/lib/pkg/python{}".format(
Expand Down

0 comments on commit 95c26f8

Please sign in to comment.