Skip to content

Commit

Permalink
undo adding scripts to sys.modules
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Apr 22, 2024
1 parent e6a8d0b commit a183ea4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/script_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import importlib.util

from modules import errors
import sys


loaded_scripts = {}
Expand All @@ -14,8 +13,8 @@ def load_module(path):
module_spec = importlib.util.spec_from_file_location(full_module_name, path)
module = importlib.util.module_from_spec(module_spec)
module_spec.loader.exec_module(module)

loaded_scripts[path] = module
sys.modules[full_module_name] = module
return module


Expand Down

0 comments on commit a183ea4

Please sign in to comment.