From 656358cd597414f0c710ecf93407644e3745a141 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Mon, 21 Jan 2019 13:24:21 +0530 Subject: [PATCH] fix: use existing function --- bench/utils.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index c1fd8e1b..2d60e9fb 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -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 + from bench.app import get_apps, install_app - try: - with open(os.path.join(bench_path, 'sites', 'apps.txt')) as f: - apps = f.read().strip().split('\n') - except IOError: - apps = [] - - for app in apps: + for app in get_apps(): install_app(app, bench_path=bench_path) def update_node_packages(bench_path='.'):