From 227365902f1349c9df6c7ed294d696387741962e Mon Sep 17 00:00:00 2001 From: Jim Bosch Date: Mon, 20 Dec 2021 16:38:10 -0500 Subject: [PATCH] Remove unnecessary variable expansion. --- python/lsst/pipe/base/pipelineIR.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/lsst/pipe/base/pipelineIR.py b/python/lsst/pipe/base/pipelineIR.py index 7ab60495c..f6c03d6c1 100644 --- a/python/lsst/pipe/base/pipelineIR.py +++ b/python/lsst/pipe/base/pipelineIR.py @@ -32,7 +32,6 @@ ) import copy -import os import re import warnings from collections import Counter @@ -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)