File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
pythonforandroid/bootstraps/pygame/build Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -255,16 +255,19 @@ def make_package(args):
255
255
else :
256
256
intent_filters = ''
257
257
258
- # Figure out if application has service part
259
- service = False
260
258
directory = args .dir if public_version else args .private
261
- if not (exists (join (realpath (directory ), 'main.py' )) or
262
- exists (join (realpath (directory ), 'main.pyo' ))):
263
- print ('''BUILD FAILURE: No main.py(o) found in your app directory. This
264
- file must exist to act as the entry point for you app. If your app is
259
+ # Ignore warning if the launcher is in args
260
+ if not args .launcher :
261
+ if not (exists (join (realpath (directory ), 'main.py' )) or
262
+ exists (join (realpath (directory ), 'main.pyo' ))):
263
+ print ('''BUILD FAILURE: No main.py(o) found in your app directory.
264
+ This file must exist to act as the entry point for you app. If your app is
265
265
started by a file with a different name, rename it to main.py or add a
266
266
main.py that loads it.''' )
267
- exit (1 )
267
+ exit (1 )
268
+
269
+ # Figure out if application has service part
270
+ service = False
268
271
if directory :
269
272
service_main = join (realpath (directory ), 'service' , 'main.py' )
270
273
if os .path .exists (service_main ) or os .path .exists (service_main + 'o' ):
You can’t perform that action at this time.
0 commit comments