Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
72cfa282
Commit
72cfa282
authored
Jul 09, 2024
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safer Imports
parent
4debd4d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/sysinfo.py
modules/sysinfo.py
+6
-4
No files found.
modules/sysinfo.py
View file @
72cfa282
...
...
@@ -7,7 +7,7 @@ import hashlib
import
re
from
pathlib
import
Path
from
modules
import
paths_internal
,
timer
,
shared
,
extens
ions
,
errors
,
launch_utils
from
modules
import
paths_internal
,
timer
,
shared
_cmd_opt
ions
,
errors
,
launch_utils
checksum_token
=
"DontStealMyGamePlz__WINNERS_DONT_USE_DRUGS__DONT_COPY_THAT_FLOPPY"
environment_whitelist
=
{
...
...
@@ -135,11 +135,11 @@ def get_argv():
res
=
[]
for
v
in
sys
.
argv
:
if
shared
.
cmd_opts
.
gradio_auth
and
shared
.
cmd_opts
.
gradio_auth
==
v
:
if
shared
_cmd_options
.
cmd_opts
.
gradio_auth
and
shared_cmd_options
.
cmd_opts
.
gradio_auth
==
v
:
res
.
append
(
"<hidden>"
)
continue
if
shared
.
cmd_opts
.
api_auth
and
shared
.
cmd_opts
.
api_auth
==
v
:
if
shared
_cmd_options
.
cmd_opts
.
api_auth
and
shared_cmd_options
.
cmd_opts
.
api_auth
==
v
:
res
.
append
(
"<hidden>"
)
continue
...
...
@@ -181,6 +181,7 @@ def get_info_from_repo_path(path: Path):
def
get_extensions
(
*
,
enabled
,
fallback_disabled_extensions
=
None
):
try
:
from
modules
import
extensions
if
extensions
.
extensions
:
def
to_json
(
x
:
extensions
.
Extension
):
return
{
...
...
@@ -199,10 +200,11 @@ def get_extensions(*, enabled, fallback_disabled_extensions=None):
def
get_config
():
try
:
from
modules
import
shared
return
shared
.
opts
.
data
except
Exception
as
_
:
try
:
with
open
(
shared
.
cmd_opts
.
ui_settings_file
,
'r'
)
as
f
:
with
open
(
shared
_cmd_options
.
cmd_opts
.
ui_settings_file
,
'r'
)
as
f
:
return
json
.
load
(
f
)
except
Exception
as
e
:
return
str
(
e
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment