2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00

fix: use existing function

This commit is contained in:
Sagar Vora 2019-01-21 13:24:21 +05:30
parent c2165b471a
commit 656358cd59

View File

@ -429,16 +429,9 @@ def update_requirements(bench_path='.'):
bench_req_file = os.path.join(os.path.dirname(bench.__path__[0]), 'requirements.txt') bench_req_file = os.path.join(os.path.dirname(bench.__path__[0]), 'requirements.txt')
install_requirements(pip, bench_req_file) install_requirements(pip, bench_req_file)
apps = [] from bench.app import get_apps, install_app
from .app import install_app
try: for app in get_apps():
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) install_app(app, bench_path=bench_path)
def update_node_packages(bench_path='.'): def update_node_packages(bench_path='.'):