We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a49073c commit 59d97a8Copy full SHA for 59d97a8
pycompatlayer.py
@@ -17,10 +17,15 @@ def fix_base(fix_environ):
17
def _fix_android_environ():
18
import os
19
20
- lib_path = "/system/lib"
+ if "LD_LIBRARY_PATH" not in os.environ:
21
+ os.environ["LD_LIBRARY_PATH"] = "."
22
+
23
+ lib64_path = ""
24
+ lib32_path = os.pathsep + "/system/lib"
25
if os.path.exists("/system/lib64"):
- lib_path = "/system/lib64" + os.pathsep + lib_path
- os.environ["LD_LIBRARY_PATH"] = os.environ.get("LD_LIBRARY_PATH", ".") + os.pathsep + lib_path
26
+ lib64_path = os.pathsep + "/system/lib64"
27
28
+ os.environ["LD_LIBRARY_PATH"] += lib64_path + lib32_path
29
30
def _fix_android_plat():
31
from distutils.spawn import find_executable
0 commit comments