Skip to content

Commit

Permalink
Need to open first the user custom config json
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Dec 29, 2019
1 parent 6bf6a18 commit a67e885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cotede/utils/config.py
Expand Up @@ -64,7 +64,8 @@ def load_cfg(cfgname="cotede"):
except:
# Otherwise, try to load from user's directory
p = os.path.join(cotederc(), "cfg", "{}.json".format(cfgname))
cfg = json.loads(p, object_pairs_hook=OrderedDict)
with open(p, 'r') as f:
cfg = json.load(f, object_pairs_hook=OrderedDict)
# self.logger.debug("%s - QC cfg: ~/.cotederc/%s" %
# (self.name, cfg))

Expand Down

0 comments on commit a67e885

Please sign in to comment.