From 071043ae74c6f5d8c8c5bf255c2ba55780d24853 Mon Sep 17 00:00:00 2001 From: Ben Salmon Date: Mon, 19 Aug 2024 11:33:11 +0100 Subject: [PATCH] delete unused imports.py --- 01_CARE/imports.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 01_CARE/imports.py diff --git a/01_CARE/imports.py b/01_CARE/imports.py deleted file mode 100755 index 783901f..0000000 --- a/01_CARE/imports.py +++ /dev/null @@ -1,15 +0,0 @@ -import os -import importlib.util - - -def load_all_modules_from_directory(directory): - modules = {} - for filename in os.listdir(directory): - if filename.endswith('.py') and not filename.startswith('__'): - module_name = filename[:-3] # Strip .py from filename to get module name - file_path = os.path.join(directory, filename) - spec = importlib.util.spec_from_file_location(module_name, file_path) - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - modules[module_name] = module - return modules