Skip to content

Commit

Permalink
add bedstat and bedbuncher out keys to path
Browse files Browse the repository at this point in the history
  • Loading branch information
joseverdezoto authored Apr 8, 2020
1 parent 31f134b commit a689ff0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bbconf/bbconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ def _raise_missing_key(key):
# if there's nothing under path key (None)
self[CFG_PATH_KEY] = PXAM()

if CFG_PIP_OUTPUT_KEY not in self[CFG_PATH_KEY]:
_raise_missing_key(CFG_PIP_OUTPUT_KEY)

if CFG_BEDSTAT_OUTPUT_KEY not in self[CFG_PATH_KEY]:
_raise_missing_key(CFG_BEDSTAT_OUTPUT_KEY)

if CFG_BEDBUNCHER_OUTPUT_KEY not in self[CFG_PATH_KEY]:
_raise_missing_key(CFG_BEDBUNCHER_OUTPUT_KEY)

for section, mapping in DEFAULT_SECTION_VALUES.items():
if section not in self:
self[section] = PXAM()
Expand Down

0 comments on commit a689ff0

Please sign in to comment.