File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ protected static String[] getLibraries() {
19
19
}
20
20
21
21
public static void loadLibraries (File filesDir ) {
22
+
23
+ String filesDirPath = filesDir .getAbsolutePath ();
24
+
22
25
for (String lib : getLibraries ()) {
23
26
System .loadLibrary (lib );
24
27
}
@@ -36,15 +39,15 @@ public static void loadLibraries(File filesDir) {
36
39
}
37
40
38
41
try {
39
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_io.so" );
40
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/unicodedata.so" );
42
+ System .load (filesDirPath + "/lib/python2.7/lib-dynload/_io.so" );
43
+ System .load (filesDirPath + "/lib/python2.7/lib-dynload/unicodedata.so" );
41
44
} catch (UnsatisfiedLinkError e ) {
42
45
Log .v (TAG , "Failed to load _io.so or unicodedata.so...but that's okay." );
43
46
}
44
47
45
48
try {
46
49
// System.loadLibrary("ctypes");
47
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_ctypes.so" );
50
+ System .load (filesDirPath + "/lib/python2.7/lib-dynload/_ctypes.so" );
48
51
} catch (UnsatisfiedLinkError e ) {
49
52
Log .v (TAG , "Unsatisfied linker when loading ctypes" );
50
53
<
394C
td data-grid-cell-id="diff-f701b87cc57cb0e5be36adea83c35de63a9ce467e1a0967051fa56f7f04b615f-50-53-2" data-line-anchor="diff-f701b87cc57cb0e5be36adea83c35de63a9ce467e1a0967051fa56f7f04b615fR53" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side"> }
You can’t perform that action at this time.
0 commit comments