File tree Expand file tree Collapse file tree
pythonforandroid/bootstraps/pygame/build Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,16 +255,19 @@ def make_package(args):
255255 else :
256256 intent_filters = ''
257257
258- # Figure out if application has service part
259- service = False
260258 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
265265started by a file with a different name, rename it to main.py or add a
266266main.py that loads it.''' )
267- exit (1 )
267+ exit (1 )
268+
269+ # Figure out if application has service part
270+ service = False
268271 if directory :
269272 service_main = join (realpath (directory ), 'service' , 'main.py' )
270273 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