diff options
Diffstat (limited to 'codegen/lib/code/inventory.py')
| -rw-r--r-- | codegen/lib/code/inventory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/lib/code/inventory.py b/codegen/lib/code/inventory.py index 066319e0..7acb269d 100644 --- a/codegen/lib/code/inventory.py +++ b/codegen/lib/code/inventory.py @@ -1,5 +1,5 @@ from typing import Any -from lib.utils import to_camel_case, get_dir_location +from lib.utils import identifier_to_path, to_camel_case, get_dir_location # The directory where declare_menus! {} is done inventory_menus_dir = get_dir_location("../azalea-inventory/src/lib.rs") @@ -128,4 +128,4 @@ def update_menus(initial_menu_entries: dict[str, Any]): def menu_name_to_enum_name(menu_name: str) -> str: - return to_camel_case(menu_name.split(":")[-1]) + return to_camel_case(identifier_to_path(menu_name)) |
