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.
LD_LIBRARY_PATH
1 parent c4ef660 commit c071550Copy full SHA for c071550
tests/packages/sharedlib-in-package/mypkg/__init__.py
@@ -27,7 +27,10 @@ def _enable_sharedlib_loading():
27
os.add_dll_directory(basedir)
28
elif sys.platform == "cygwin":
29
basedir = os.path.dirname(__file__)
30
- os.environ["PATH"] = f"{os.environ['PATH']:s}:{basedir:s}"
+ if 'LD_LIBRARY_PATH' in os.environ:
31
+ os.environ["LD_LIBRARY_PATH"] = f"{os.environ['LD_LIBRARY_PATH']:s}:{basedir:s}"
32
+ else:
33
+ os.environ["LD_LIBRARY_PATH"] = f"{basedir:s}"
34
35
36
_enable_sharedlib_loading()
0 commit comments