8000 Merge pull request #815 from KeyWeeUsr/pygame_launcher · suriyan/python-for-android@970641e · GitHub
[go: up one dir, main page]

Skip to content

Commit 970641e

Browse files
authored
Merge pull request kivy#815 from KeyWeeUsr/pygame_launcher
Enable launcher for pygame
2 parents 6d8c554 + fffc8a1 commit 970641e

File tree

1 file changed

+10
-7
lines changed
  • pythonforandroid/bootstraps/pygame/build

1 file changed

+10
-7
lines changed

pythonforandroid/bootstraps/pygame/build/build.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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
265265
started by a file with a different name, rename it to main.py or add a
266266
main.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'):

0 commit comments

Comments
 (0)
0