From fbd6553c7d30ffa2a9b40b23d25f2feb80ac1d42 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Mon, 20 Jul 2020 22:22:15 +0300 Subject: [PATCH] Also check __init__ when installing from sources --- entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.py b/entrypoint.py index 7b83d25..c8f05fb 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -46,7 +46,7 @@ def install_buildozer(buildozer_version): if buildozer_version == "stable": # Install stable buildozer from PyPI subprocess.check_call([*pip_install, "buildozer"]) - elif os.path.exists(buildozer_version): + elif os.path.exists(buildozer_version) and os.path.exists(os.path.join(buildozer_version, "buildozer", "__init__.py")): # Install from local directory subprocess.check_call([*pip_install, buildozer_version]) elif buildozer_version.startswith("git+"):