mirror of
https://github.com/frappe/bench.git
synced 2025-02-03 11:28:24 +00:00
decode get_cmd_output
This commit is contained in:
parent
2b554e55d7
commit
762b02c818
@ -95,7 +95,9 @@ def get_frappe_commands(bench_path='.'):
|
|||||||
if not os.path.exists(sites_path):
|
if not os.path.exists(sites_path):
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
return json.loads(get_cmd_output("{python} -m frappe.utils.bench_helper get-frappe-commands".format(python=python), cwd=sites_path))
|
output = get_cmd_output("{python} -m frappe.utils.bench_helper get-frappe-commands".format(python=python), cwd=sites_path)
|
||||||
|
output = output.decode('utf-8')
|
||||||
|
return json.loads(output)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user