Skip to content

Commit

Permalink
fix: pull app list from sites/apps.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Jan 21, 2019
1 parent 8569749 commit c2165b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,16 @@ 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
for app in os.listdir(apps_dir):

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:
install_app(app, bench_path=bench_path)

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

0 comments on commit c2165b4

Please sign in to comment.