From 2a519af33af6c0dbadc2ccbe63671f56b2af87b6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 6 Mar 2026 12:41:32 +0000 Subject: [PATCH] Add note about case sensitivity --- src/genie_python/genie.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/genie_python/genie.py b/src/genie_python/genie.py index 0b0d0f8..47e0afd 100644 --- a/src/genie_python/genie.py +++ b/src/genie_python/genie.py @@ -1475,7 +1475,6 @@ def load_script(name: str, check_script: bool = True, warnings_as_error: bool = full_name = get_correct_filepath_existing(name) except Exception: # Try with default script directory prepended - full_name = get_correct_filepath_existing(os.path.join(get_user_script_dir(), name)) except Exception: raise Exception("Script file was not found (%s)" % get_correct_path(name)) @@ -1559,7 +1558,10 @@ def __load_module(name: str, directory: str) -> types.ModuleType: """ spec = importlib.util.find_spec(name, directory) if spec is None: - raise ValueError(f"Cannot find spec for module {name} in {directory}") + raise ValueError( + f"Cannot find spec for module {name} in {directory}. " + f"Check that the module name is correct (note: module names are case sensitive)." + ) module = importlib.util.module_from_spec(spec) err_msg = (