From e8f03fa9ddfafb6e9446008f75fa8a33248a1e46 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 21 Oct 2024 09:43:43 +0200 Subject: [PATCH] modules/common.py: format_path instead of format --- lib/spack/spack/modules/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py index c770564eddd..42890e4fe40 100644 --- a/lib/spack/spack/modules/common.py +++ b/lib/spack/spack/modules/common.py @@ -527,9 +527,7 @@ def use_name(self): parts = name.split("/") name = os.path.join(*parts) # Add optional suffixes based on constraints - path_elements = [name] - path_elements.extend(map(self.spec.format, self.conf.suffixes)) - return "-".join(path_elements) + return "-".join([name, *map(self.spec.format_path, self.conf.suffixes)]) @property def filename(self):