File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,11 @@ def make_package(args):
336
336
with open (args .intent_filters ) as fd :
337
337
args .intent_filters = fd .read ()
338
338
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 = ''
342
344
343
345
if args .extra_source_dirs :
344
346
esd = []
@@ -687,7 +689,7 @@ def _read_configuration():
687
689
if args .meta_data is None :
688
690
args .meta_data = []
689
691
690
- if ( not hasattr ( args , 'services' )) or args . services is None :
692
+ if getattr ( args , 'services' , None ) is None :
691
693
args .services = []
692
694
693
695
if args .try_system_python_compile :
You can’t perform that action at this time.
0 commit comments