aboutsummaryrefslogtreecommitdiff
path: root/modules/extensions.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 10:25:35 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 10:25:35 +0300
commit386245a26427a64f364f66f6fecd03b3bccfd7f3 (patch)
tree427cd01b680c318acb964076232b064882d2f364 /modules/extensions.py
parent7d81ecbea6b558addd356d49c56891d04bc91fd4 (diff)
split shared.py into multiple files; should resolve all circular reference import errors related to shared.py
Diffstat (limited to 'modules/extensions.py')
-rw-r--r--modules/extensions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/extensions.py b/modules/extensions.py
index e4633af4..bf9a1878 100644
--- a/modules/extensions.py
+++ b/modules/extensions.py
@@ -1,7 +1,7 @@
import os
import threading
-from modules import shared, errors, cache
+from modules import shared, errors, cache, scripts
from modules.gitpython_hack import Repo
from modules.paths_internal import extensions_dir, extensions_builtin_dir, script_path # noqa: F401
@@ -90,8 +90,6 @@ class Extension:
self.have_info_from_repo = True
def list_files(self, subdir, extension):
- from modules import scripts
-
dirpath = os.path.join(self.path, subdir)
if not os.path.isdir(dirpath):
return []