File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,7 @@ protected void onCreate(Bundle savedInstanceState) {
84
84
File path = new File (getIntent ().getData ().getSchemeSpecificPart ());
85
85
86
86
Project p = Project .scanDirectory (path );
87
-
88
- if (p != null ) {
89
- SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , p .dir + "/main.py" );
90
- } else {
91
- SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , "main.pyo" );
92
- }
87
+ SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , p .dir + "/main.py" );
93
88
94
89
// Let old apps know they started.
95
90
try {
@@ -99,6 +94,8 @@ protected void onCreate(Bundle savedInstanceState) {
99
94
} catch (IOException e ) {
100
95
// pass
101
96
}
97
+ } else {
98
+ SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , "main.pyo" );
102
99
}
103
100
104
101
String app_root_dir = getAppRoot ();
You can’t perform that action at this time.
0 commit comments