mirror of
https://github.com/frappe/bench.git
synced 2025-02-08 13:48:25 +00:00
fix bench init
This commit is contained in:
parent
250a54e78b
commit
c8c5bec828
@ -127,7 +127,10 @@ def setup_logging(bench='.'):
|
|||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
def get_config(bench='.'):
|
def get_config(bench='.'):
|
||||||
with open(os.path.join(bench, 'config.json')) as f:
|
config_path = os.path.join(bench, 'config.json')
|
||||||
|
if not os.path.exists(config_path):
|
||||||
|
return {}
|
||||||
|
with open(config_path) as f:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
|
|
||||||
def put_config(config, bench='.'):
|
def put_config(config, bench='.'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user