From c8c5bec8280781222c709778757e07e8bff0171a Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Wed, 16 Jul 2014 18:09:02 +0530 Subject: [PATCH] fix bench init --- bench/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index ad9013a6..62464014 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -127,7 +127,10 @@ def setup_logging(bench='.'): logger.setLevel(logging.DEBUG) 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) def put_config(config, bench='.'):