From e8667f856fdfa27d4f8bc770ff9f84e74f779423 Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Sun, 20 Aug 2023 15:54:38 -0600 Subject: [PATCH] Fix issue with there being an extra . on gene --- toolkit/config_modules.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toolkit/config_modules.py b/toolkit/config_modules.py index c070c904..fb00aafc 100644 --- a/toolkit/config_modules.py +++ b/toolkit/config_modules.py @@ -233,7 +233,11 @@ class GenerateImageConfig: def get_image_path(self, count: int = 0, max_count=0): filename = self._get_path_no_ext(count, max_count) - filename += '.' + self.output_ext + ext = self.output_ext + # if it does not start with a dot add one + if ext[0] != '.': + ext = '.' + ext + filename += ext # join with folder return os.path.join(self.output_folder, filename)