Skip to content

Commit

Permalink
Merge support for the full file path config [#140]
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Oct 1, 2019
2 parents f584cb8 + 95e19bf commit 9e6b8e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion did/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def path():
filename = "config"
matched = re.search("--confi?g?[ =](\S+)", " ".join(sys.argv))
if matched:
filename = matched.groups()[0]
filepath, filename = os.path.split(matched.groups()[0])
if filepath:
directory = filepath
return directory.rstrip("/") + "/" + filename

@staticmethod
Expand Down

0 comments on commit 9e6b8e4

Please sign in to comment.