From 25d63ed67ca613761aeff306c59641392f1274ce Mon Sep 17 00:00:00 2001 From: 3Mydlo3 Date: Wed, 18 Dec 2024 23:06:08 +0100 Subject: [PATCH] Add message that subaddon was detected --- tools/stringtable_validator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/stringtable_validator.py b/tools/stringtable_validator.py index ad61b9a..207f09d 100644 --- a/tools/stringtable_validator.py +++ b/tools/stringtable_validator.py @@ -56,12 +56,13 @@ def check_stringtable(filepath): component_folder_name = os.path.basename(os.path.dirname(filepath)) if package_name.lower() != component_folder_name: - # TODO: Check if it might be subaddon parent_component_folder_name = os.path.basename(os.path.dirname(os.path.dirname(filepath))) subcomponent_name = f"{parent_component_folder_name}_{component_folder_name}" if package_name.lower() != subcomponent_name: print(" ERROR: Package name attribute '{}' does not match any of component folder name '{}' and subcomponent '{}'.".format(package_name, component_folder_name, subcomponent_name)) errors += 1 + else: + print(f" INFO: Detected subaddon '{subcomponent_name}' used in Package name attribute.") # Get all keys contained in the stringtable keys = package.findall("Key")