Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d1035 commit 7c57857Copy full SHA for 7c57857
1 file changed
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