diff --git a/src/psyclone/parse/module_manager.py b/src/psyclone/parse/module_manager.py index 9f2e52e4ef..c5ca4c49ec 100644 --- a/src/psyclone/parse/module_manager.py +++ b/src/psyclone/parse/module_manager.py @@ -262,8 +262,10 @@ def get_all_dependencies_recursively(self, all_mods): not_found = set() while todo: - # Pick one (random) module to handle: - module = todo.pop() + # Pick one (random) module to handle (convert to lowercase + # in case that the code use inconsistent capitalisation) + module = todo.pop().lower() + # Ignore any modules that we were asked to ignore if module in self.ignores(): continue