Skip to content

Commit

Permalink
restore 1.8.0-style naming of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Apr 22, 2024
1 parent e84703b commit 61f6479
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/script_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@


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)

Expand Down

0 comments on commit 61f6479

Please sign in to comment.