From 76f1ee5f32deec16d25561fdab3b242249e37145 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Fri, 12 Jul 2019 17:06:26 -0600 Subject: 'spack compiler add' resolves relative path to absolute path (#11792) Fixes #11782 Spack was not properly resolving relative paths to absolute paths when a relative path was passed to "spack compiler add [PATH]". Now, if provided a relative path, the absolute path is written to compilers.yaml rather than the relative path. --- lib/spack/llnl/util/filesystem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index 066eca5bd3..f4a1a9360c 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -1443,6 +1443,7 @@ def search_paths_for_executables(*path_hints): if not os.path.isdir(path): continue + path = os.path.abspath(path) executable_paths.append(path) bin_dir = os.path.join(path, 'bin') -- cgit v1.2.3-60-g2f50