Skip to content

Commit

Permalink
Print component_folder_name in stringtable_validator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Dec 18, 2024
1 parent ed55441 commit 933c710
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/stringtable_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ def check_stringtable(filepath):
print(" ERROR: Package name attribute '{}' is all lowercase, should be in titlecase.".format(package_name))
errors += 1

if package_name.lower() != os.path.basename(os.path.dirname(filepath)):
print(" ERROR: Package name attribute '{}' does not match the component folder name.".format(package_name))
component_folder_name = os.path.basename(os.path.dirname(filepath))

if package_name.lower() != component_folder_name:
# TODO: Check if it might be subaddon
print(" ERROR: Package name attribute '{}' does not match the component folder name '{}'.".format(package_name, component_folder_name))
errors += 1

# Get all keys contained in the stringtable
Expand Down

0 comments on commit 933c710

Please sign in to comment.