From 95c26f83610d5729c6efcf371d9ab5322bdc77cf Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 27 Dec 2023 11:14:06 +0000 Subject: [PATCH] Fix sys.path stripping under testsuite --- src/modules/site_paths/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/site_paths/__init__.py b/src/modules/site_paths/__init__.py index 40e00f9a8..92469ce03 100644 --- a/src/modules/site_paths/__init__.py +++ b/src/modules/site_paths/__init__.py @@ -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. @@ -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(