We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06fb51 commit 0014ce7Copy full SHA for 0014ce7
Lib/test/test_venv.py
@@ -594,7 +594,9 @@ def test_zippath_from_non_installed_posix(self):
594
# For python built with shared enabled. We need to set
595
# LD_LIBRARY_PATH so the non-installed python can find and link
596
# libpython.so
597
- ld_library_path = os.path.abspath(os.path.dirname(sys.executable))
+ ld_library_path = sysconfig.get_config_var("LIBDIR")
598
+ if not ld_library_path or sysconfig.is_python_build():
599
+ ld_library_path = os.path.abspath(os.path.dirname(sys.executable))
600
if sys.platform == 'darwin':
601
ld_library_path_env = "DYLD_LIBRARY_PATH"
602
else:
0 commit comments