Skip to content

Commit 49e616c

Browse files
authored
Merge pull request #1819 from devos50/fix_build_service_only
Fixed build file for service_only bootstrap
2 parents de49335 + fcd4172 commit 49e616c

File tree

1 file changed

+2
-1
lines changed
  • pythonforandroid/bootstraps/common/build

1 file changed

+2
-1
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ def make_package(args):
299299
# Add extra environment variable file into tar-able directory:
300300
env_vars_tarpath = tempfile.mkdtemp(prefix="p4a-extra-env-")
301301
with open(os.path.join(env_vars_tarpath, "p4a_env_vars.txt"), "w") as f:
302-
f.write("P4A_IS_WINDOWED=" + str(args.window) + "\n")
302+
if hasattr(args, "window"):
303+
f.write("P4A_IS_WINDOWED=" + str(args.window) + "\n")
303304
if hasattr(args, "orientation"):
304305
f.write("P4A_ORIENTATION=" + str(args.orientation) + "\n")
305306
f.write("P4A_NUMERIC_VERSION=" + str(args.numeric_version) + "\n")

0 commit comments

Comments
 (0)