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) {
8484 File path = new File (getIntent ().getData ().getSchemeSpecificPart ());
8585
8686 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" );
9388
9489 // Let old apps know they started.
9590 try {
@@ -99,6 +94,8 @@ protected void onCreate(Bundle savedInstanceState) {
9994 } catch (IOException e ) {
10095 // pass
10196 }
97+ } else {
98+ SDLActivity .nativeSetEnv ("ANDROID_ENTRYPOINT" , "main.pyo" );
10299 }
103100
104101 String app_root_dir = getAppRoot ();
You can’t perform that action at this time.
0 commit comments