modules/common.py: format_path instead of format

This commit is contained in:
Harmen Stoppels 2024-10-21 09:43:43 +02:00
parent e5a602c1bb
commit e8f03fa9dd

View File

@ -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):