File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -297,12 +297,10 @@ def make_package(args):
297
297
# Add extra environment variable file into tar-able directory:
298
298
env_vars_tarpath = tempfile .mkdtemp (prefix = "p4a-extra-env-" )
299
299
with open (os .path .join (env_vars_tarpath , "p4a_env_vars.txt" ), "w" ) as f :
300
- try :
300
+ if hasattr ( args , 'window' ) :
301
301
f .write ("P4A_IS_WINDOWED=" + str (args .window ) + "\n " )
302
- if hasattr (args , "orientation" ):
303
- f .write ("P4A_ORIENTATION=" + str (args .orientation ) + "\n " )
304
- except AttributeError as e :
305
- print ('kivy is not in the requirements' )
302
+ if hasattr (args , "orientation" ):
303
+ f .write ("P4A_ORIENTATION=" + str (args .orientation ) + "\n " )
306
304
f .write ("P4A_NUMERIC_VERSION=" + str (args .numeric_version ) + "\n " )
307
305
f .write ("P4A_MINSDK=" + str (args .min_sdk_version ) + "\n " )
308
306
You can’t perform that action at this time.
0 commit comments