Skip to content

Commit

Permalink
Reload config file when changing config file
Browse files Browse the repository at this point in the history
  • Loading branch information
marzipankaiser committed Sep 18, 2019
1 parent 79b0d67 commit 942606d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameter_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def parse_argparse_results(self, args):
args -- the result of argparse
"""
if self.path_parameter in args.__dict__ and args.__dict__[self.path_parameter] is not None:
self.paths = [pathlib.Path(args.__dict__[self.path_parameter]).expanduser()]
self.set_files([pathlib.Path(args.__dict__[self.path_parameter]).expanduser()])
self.load()
for cp in self.params.values():
if cp['name'] in args.__dict__ and args.__dict__[cp['name']] is not None:
Expand Down

0 comments on commit 942606d

Please sign in to comment.