Skip to content

Commit

Permalink
Merge pull request #426 from boeddeker/patch-7
Browse files Browse the repository at this point in the history
Ignore folders that have the same name as a named_config
  • Loading branch information
Qwlouse committed Mar 5, 2019
2 parents 9055262 + 8195a36 commit 7e78ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sacred/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def gather_fallbacks(self):
self.fallback.revelation()

def run_named_config(self, config_name):
if os.path.exists(config_name):
if os.path.isfile(config_name):
nc = ConfigDict(load_config_file(config_name))
else:
if config_name not in self.named_configs:
Expand Down

0 comments on commit 7e78ce0

Please sign in to comment.