2
0
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:
Pratik Vyas 2014-07-16 18:09:02 +05:30
parent 250a54e78b
commit c8c5bec828

View File

@ -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='.'):