Skip to content

Commit b09711f

Browse files
committed
only load libpython once
1 parent 1adc8ca commit b09711f

File tree

1 file changed

+1
-0
lines changed
  • pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android

1 file changed

+1
-0
lines changed

pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public static void loadLibraries(File filesDir, File libsDir) {
6565
for (String lib : getLibraries(libsDir)) {
6666
Log.v(TAG, "Loading library: " + lib);
6767
try {
68+
if (lib.startsWith("python") && foundPython) {continue;}
6869
System.loadLibrary(lib);
6970
if (lib.startsWith("python")) {
7071
foundPython = true;

0 commit comments

Comments
 (0)