add python 3.10 to loadLibraries check
This commit is contained in:
parent
70128b640f
commit
bc251c9fac
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ public class PythonUtil {
|
||||||
libsList.add("python3.7m");
|
libsList.add("python3.7m");
|
||||||
libsList.add("python3.8");
|
libsList.add("python3.8");
|
||||||
libsList.add("python3.9");
|
libsList.add("python3.9");
|
||||||
|
libsList.add("python3.10");
|
||||||
libsList.add("main");
|
libsList.add("main");
|
||||||
return libsList;
|
return libsList;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +53,7 @@ public class PythonUtil {
|
||||||
// load, and it has failed, give a more
|
// load, and it has failed, give a more
|
||||||
// general error
|
// general error
|
||||||
Log.v(TAG, "Library loading error: " + e.getMessage());
|
Log.v(TAG, "Library loading error: " + e.getMessage());
|
||||||
if (lib.startsWith("python3.9") && !foundPython) {
|
if (lib.startsWith("python3.10") && !foundPython) {
|
||||||
throw new RuntimeException("Could not load any libpythonXXX.so");
|
throw new RuntimeException("Could not load any libpythonXXX.so");
|
||||||
} else if (lib.startsWith("python")) {
|
} else if (lib.startsWith("python")) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue