restore 1.8.0-style naming of scripts

This commit is contained in:
AUTOMATIC1111 2024-04-22 12:19:30 +03:00
parent e84703b253
commit 61f6479ea9
1 changed files with 1 additions and 3 deletions

View File

@ -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)