Skip to content

Commit

Permalink
Merge pull request #17 from BCDA-APS/simplify-get_md_path
Browse files Browse the repository at this point in the history
simplify get_md_path()
  • Loading branch information
prjemian authored Nov 11, 2024
2 parents 8b8a193 + 1b3e6ab commit 75de131
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/instrument/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@

def get_md_path():
"""Get PersistentDict directory for RE metadata."""
path = iconfig.get("MD_PATH")
if path is None:
path = DEFAULT_MD_PATH
else:
path = pathlib.Path(path)
path = pathlib.Path(iconfig.get("MD_PATH", DEFAULT_MD_PATH))
logger.info("RunEngine metadata saved in directory: %s", str(path))
return str(path)

Expand Down

0 comments on commit 75de131

Please sign in to comment.