2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

Merge pull request #1147 from ankush/fix_compile

fix: use correct path for compiling py files
This commit is contained in:
gavin 2021-04-21 11:53:10 +05:30 committed by GitHub
commit cba3f7d8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,8 +244,9 @@ def update(pull=False, apps=None, patch=False, build=False, requirements=False,
post_upgrade(version_upgrade[1], version_upgrade[2], bench_path=bench_path)
if pull and compile:
print("Compiling Python files...")
compileall.compile_dir('../apps', quiet=1, rx=re.compile('.*node_modules.*'))
print('Compiling Python files...')
apps_dir = os.path.join(bench_path, 'apps')
compileall.compile_dir(apps_dir, quiet=1, rx=re.compile('.*node_modules.*'))
if restart_supervisor or conf.get('restart_supervisor_on_update'):
restart_supervisor_processes(bench_path=bench_path)