diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/relocate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index afbae543af..c7d442a427 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -137,7 +137,7 @@ def get_normalized_elf_rpaths(orig_path_name, rel_rpaths): norm_rpaths = list() for rpath in rel_rpaths: if rpath.startswith('$ORIGIN'): - sub = re.sub('$ORIGIN', + sub = re.sub(re.escape('$ORIGIN'), os.path.dirname(orig_path_name), rpath) norm = os.path.normpath(sub) |