Skip to content

Commit

Permalink
Remove unnecessary variable expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Dec 20, 2021
1 parent 39dbe37 commit 01f3ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/pipe/base/pipelineIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def standardize_uri_in_pipeline(path: str, directory: Optional[ButlerURI]) -> Bu
RuntimeError
Raised if ``path`` is relative but ``directory`` is `None`.
"""
uri = ButlerURI(os.path.expandvars(path), forceAbsolute=False)
# ButlerURI will expand variables automatically.
uri = ButlerURI(path, forceAbsolute=False)
if not uri.isabs():
if directory is not None:
uri = directory.join(uri)
Expand Down

0 comments on commit 01f3ecf

Please sign in to comment.