Commit 61f6479e authored by AUTOMATIC1111's avatar AUTOMATIC1111

restore 1.8.0-style naming of scripts

parent e84703b2
......@@ -8,9 +8,7 @@ loaded_scripts = {}
def load_module(path):
module_name, _ = os.path.splitext(os.path.basename(path))
full_module_name = "scripts." + module_name
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)
module = importlib.util.module_from_spec(module_spec)
module_spec.loader.exec_module(module)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment