2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

fix: support single required app

This commit is contained in:
barredterra 2022-03-23 17:04:37 +01:00
parent 1337f9c1a5
commit c8205e485d

View File

@ -282,6 +282,10 @@ def setup_app_dependencies(
lines = [x for x in f.read().split("\n") if x.strip().startswith("required_apps")]
if lines:
required_apps = eval(lines[0].strip("required_apps").strip().lstrip("=").strip())
if isinstance(required_apps, str):
required_apps = [required_apps]
# TODO: when the time comes, add version check here
for app in required_apps:
if app not in Bench(bench_path).apps: