aboutsummaryrefslogtreecommitdiff
path: root/modules/sysinfo.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 14:40:06 +0300
committerGitHub <noreply@github.com>2023-08-09 14:40:06 +0300
commitc8c48640e661a0275c9ffa04b148e20213f3e902 (patch)
tree601a7db6f6811ce6c0a1cb02e7d9c30b705595bb /modules/sysinfo.py
parent2617598b7a014676611134566fafd6604e6c4486 (diff)
parent386245a26427a64f364f66f6fecd03b3bccfd7f3 (diff)
Merge pull request #12426 from AUTOMATIC1111/split_shared
Split shared.py into multiple files
Diffstat (limited to 'modules/sysinfo.py')
-rw-r--r--modules/sysinfo.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/sysinfo.py b/modules/sysinfo.py
index cf24c6dd..7d906e1f 100644
--- a/modules/sysinfo.py
+++ b/modules/sysinfo.py
@@ -10,7 +10,7 @@ import psutil
import re
import launch
-from modules import paths_internal, timer
+from modules import paths_internal, timer, shared, extensions, errors
checksum_token = "DontStealMyGamePlz__WINNERS_DONT_USE_DRUGS__DONT_COPY_THAT_FLOPPY"
environment_whitelist = {
@@ -115,8 +115,6 @@ def format_exception(e, tb):
def get_exceptions():
try:
- from modules import errors
-
return list(reversed(errors.exception_records))
except Exception as e:
return str(e)
@@ -142,8 +140,6 @@ def get_torch_sysinfo():
def get_extensions(*, enabled):
try:
- from modules import extensions
-
def to_json(x: extensions.Extension):
return {
"name": x.name,
@@ -160,7 +156,6 @@ def get_extensions(*, enabled):
def get_config():
try:
- from modules import shared
return shared.opts.data
except Exception as e:
return str(e)