diff --git a/python/lsst/pipe/base/pipelineIR.py b/python/lsst/pipe/base/pipelineIR.py index b72892114..956054f6a 100644 --- a/python/lsst/pipe/base/pipelineIR.py +++ b/python/lsst/pipe/base/pipelineIR.py @@ -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)