2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

fix run_frappe_cmd

This commit is contained in:
Pratik Vyas 2015-03-03 16:36:44 +05:30
parent 33a63f2343
commit 84aeb0fceb

View File

@ -414,7 +414,7 @@ def get_current_frappe_version():
def run_frappe_cmd(*args):
bench = '.'
f = get_env_cmd('python', bench=bench)
os.chdir(os.path.join(bench, 'sites'))
subprocess.check_call((f, '-m', 'frappe.utils.bench_helper', 'frappe') + args)
sites_dir = os.path.join(bench, 'sites')
subprocess.check_call((f, '-m', 'frappe.utils.bench_helper', 'frappe') + args, cwd=sites_dir)
FRAPPE_VERSION = get_current_frappe_version()