Skip to content

Commit f5f8620

Browse files
committed
Fix bug - check for main.py
- Qt boostrap removed from comparison in the changed line because its expects a value is args.launcher, which is not applicable for Qt boostrap. Hence, it exits with an value not found exception. - Removing Qt boostrap from the comparison leads to checking for main.py or --private, which is to be done for the Qt boostrap.
1 parent 303e8fb commit f5f8620

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def compile_py_file(python_file, optimize_python=True):
222222

223223
def make_package(args):
224224
# If no launcher is specified, require a main.py/main.pyc:
225-
if (get_bootstrap_name() not in ["sdl", "qt"] or args.launcher is None) and \
225+
if (get_bootstrap_name() != "sdl" or args.launcher is None) and \
226226
get_bootstrap_name() not in ["webview", "service_library"]:
227227
# (webview doesn't need an entrypoint, apparently)
228228
if args.private is None or (

0 commit comments

Comments
 (0)