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 Jan 28, 2022
1 parent 1946ea6 commit 2273659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/lsst/pipe/base/pipelineIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
)

import copy
import os
import re
import warnings
from collections import Counter
Expand Down Expand Up @@ -70,7 +69,7 @@ def standardize_uri_in_pipeline(path: str, directory: Optional[ResourcePath]) ->
RuntimeError
Raised if ``path`` is relative but ``directory`` is `None`.
"""
uri = ResourcePath(os.path.expandvars(path), forceAbsolute=False)
uri = ResourcePath(path, forceAbsolute=False)
if not uri.isabs():
if directory is not None:
uri = directory.join(uri)
Expand Down

0 comments on commit 2273659

Please sign in to comment.