mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
fix run_frappe_cmd
This commit is contained in:
parent
33a63f2343
commit
84aeb0fceb
@ -414,7 +414,7 @@ def get_current_frappe_version():
|
|||||||
def run_frappe_cmd(*args):
|
def run_frappe_cmd(*args):
|
||||||
bench = '.'
|
bench = '.'
|
||||||
f = get_env_cmd('python', bench=bench)
|
f = get_env_cmd('python', bench=bench)
|
||||||
os.chdir(os.path.join(bench, 'sites'))
|
sites_dir = os.path.join(bench, 'sites')
|
||||||
subprocess.check_call((f, '-m', 'frappe.utils.bench_helper', 'frappe') + args)
|
subprocess.check_call((f, '-m', 'frappe.utils.bench_helper', 'frappe') + args, cwd=sites_dir)
|
||||||
|
|
||||||
FRAPPE_VERSION = get_current_frappe_version()
|
FRAPPE_VERSION = get_current_frappe_version()
|
||||||
|
Loading…
Reference in New Issue
Block a user