Skip to content

Commit

Permalink
fix: support single required app
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Mar 23, 2022
1 parent 1337f9c commit c8205e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c8205e4

Please sign in to comment.