Skip to content

Commit 3b5da81

Browse files
committed
Minor corrections for build.py that should had been fixed in #1541
We merged by mistake the mentioned pr with some minor issues that should had been fixed in there. We solve that in here. ¡¡¡Thanks @AndreMiras!!!
1 parent ce0a651 commit 3b5da81

File tree

1 file changed

+6
-4
lines changed
  • pythonforandroid/bootstraps/common/build

1 file changed

+6
-4
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,11 @@ def make_package(args):
336336
with open(args.intent_filters) as fd:
337337
args.intent_filters = fd.read()
338338

339-
# if get_bootstrap_name() == "sdl2":
340-
args.add_activity = args.add_activity or []
341-
args.activity_launch_mode = args.activity_launch_mode or ''
339+
if not args.add_activity:
340+
args.add_activity = []
341+
342+
if not args.activity_launch_mode:
343+
args.activity_launch_mode = ''
342344

343345
if args.extra_source_dirs:
344346
esd = []
@@ -687,7 +689,7 @@ def _read_configuration():
687689
if args.meta_data is None:
688690
args.meta_data = []
689691

690-
if (not hasattr(args, 'services')) or args.services is None:
692+
if getattr(args, 'services', None) is None:
691693
args.services = []
692694

693695
if args.try_system_python_compile:

0 commit comments

Comments
 (0)