Skip to content

Commit

Permalink
Make basic generator robust to caps in filename
Browse files Browse the repository at this point in the history
This ensures that a model filename with capitalization in it still
produces autocoded Ada that is all lower case.
  • Loading branch information
dinkelk committed Sep 16, 2024
1 parent 0a97404 commit cde66df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/generators/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cde66df

Please sign in to comment.