From 2bb04dd97cc45d1e54d419ae23162f38022f4003 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Thu, 21 Jul 2022 15:53:36 +0200 Subject: [PATCH] added a point that could help for track file format that could have the same name but with a suffix --- source/mkw/ModConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/mkw/ModConfig.py b/source/mkw/ModConfig.py index 19b43d7..63b5c45 100644 --- a/source/mkw/ModConfig.py +++ b/source/mkw/ModConfig.py @@ -282,7 +282,7 @@ class ModConfig: # prepare the default track default_track_file: Path = next( - track_directory.rglob(f"{self.default_track.repr_format(self, self.track_file_template)}*") + track_directory.rglob(f"{self.default_track.repr_format(self, self.track_file_template)}.*") ) yield {"description": "normalizing default track"} @@ -295,7 +295,7 @@ class ModConfig: for track in self.get_tracks(): track_file: Path = next( - track_directory.rglob(f"{track.repr_format(self, self.track_file_template)}*") + track_directory.rglob(f"{track.repr_format(self, self.track_file_template)}.*") ) @threaded