summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-09-02 14:38:47 +0200
committerGitHub <noreply@github.com>2024-09-02 12:38:47 +0000
commitb5dec35113c13a2e5e5e570d855f1c013328dca2 (patch)
treebe7c7e7a367b0e6a3b82e0c351494dd0b8f6e3d5 /lib
parent20565ba8ab592f3c03f8cdd30a1b99ecd33f0e4b (diff)
downloadspack-b5dec35113c13a2e5e5e570d855f1c013328dca2.tar.gz
spack-b5dec35113c13a2e5e5e570d855f1c013328dca2.tar.bz2
spack-b5dec35113c13a2e5e5e570d855f1c013328dca2.tar.xz
spack-b5dec35113c13a2e5e5e570d855f1c013328dca2.zip
projections: simplify expression (#46167)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/directory_layout.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/spack/spack/directory_layout.py b/lib/spack/spack/directory_layout.py
index 1baedd2b75..b094012fa6 100644
--- a/lib/spack/spack/directory_layout.py
+++ b/lib/spack/spack/directory_layout.py
@@ -22,13 +22,8 @@ import spack.spec
import spack.util.spack_json as sjson
from spack.error import SpackError
-# Note: Posixpath is used here as opposed to
-# os.path.join due to spack.spec.Spec.format
-# requiring forward slash path seperators at this stage
default_projections = {
- "all": posixpath.join(
- "{architecture}", "{compiler.name}-{compiler.version}", "{name}-{version}-{hash}"
- )
+ "all": "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"
}