We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84703b commit 61f6479Copy full SHA for 61f6479
modules/script_loading.py
@@ -8,9 +8,7 @@
8
9
10
def load_module(path):
11
- module_name, _ = os.path.splitext(os.path.basename(path))
12
- full_module_name = "scripts." + module_name
13
- module_spec = importlib.util.spec_from_file_location(full_module_name, path)
+ module_spec = importlib.util.spec_from_file_location(os.path.basename(path), path)
14
module = importlib.util.module_from_spec(module_spec)
15
module_spec.loader.exec_module(module)
16
0 commit comments