From cde66df0b5088dcce4dc1099b0e0e4615bd80ccd Mon Sep 17 00:00:00 2001 From: Kevin Dinkel <1225857+dinkelk@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:19:23 -0600 Subject: [PATCH] Make basic generator robust to caps in filename This ensures that a model filename with capitalization in it still produces autocoded Ada that is all lower case. --- gen/generators/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/generators/basic.py b/gen/generators/basic.py index 1f9590f4..81ac49e0 100644 --- a/gen/generators/basic.py +++ b/gen/generators/basic.py @@ -260,9 +260,9 @@ def output_filename(self, input_filename): # Construct the filename: if specific_name: - output_filename = self._get_default_output_filename(specific_name) + output_filename = self._get_default_output_filename(specific_name.lower()) else: - output_filename = self._get_default_output_filename(model_name) + output_filename = self._get_default_output_filename(model_name.lower()) # Return the suggested output filename: return dirname + os.sep + build_dir + os.sep + output_filename