Skip to content

Commit

Permalink
fix: use existing function
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Jan 21, 2019
1 parent c2165b4 commit 656358c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,16 +429,9 @@ def update_requirements(bench_path='.'):
bench_req_file = os.path.join(os.path.dirname(bench.__path__[0]), 'requirements.txt')
install_requirements(pip, bench_req_file)

apps = []
from .app import install_app

try:
with open(os.path.join(bench_path, 'sites', 'apps.txt')) as f:
apps = f.read().strip().split('\n')
except IOError:
apps = []
from bench.app import get_apps, install_app

for app in apps:
for app in get_apps():
install_app(app, bench_path=bench_path)

def update_node_packages(bench_path='.'):
Expand Down

0 comments on commit 656358c

Please sign in to comment.