Skip to content

Commit 59d97a8

Browse files
authored
Minor changes
1 parent a49073c commit 59d97a8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pycompatlayer.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ def fix_base(fix_environ):
1717
def _fix_android_environ():
1818
import os
1919

20-
lib_path = "/system/lib"
20+
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"
2125
if os.path.exists("/system/lib64"):
22-
lib_path = "/system/lib64" + os.pathsep + lib_path
23-
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
2429

2530
def _fix_android_plat():
2631
from distutils.spawn import find_executable

0 commit comments

Comments
 (0)