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
27947a79
Commit
27947a79
authored
Jul 08, 2024
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git status
parent
11f827c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
modules/launch_utils.py
modules/launch_utils.py
+8
-0
modules/sysinfo.py
modules/sysinfo.py
+5
-6
No files found.
modules/launch_utils.py
View file @
27947a79
...
@@ -85,6 +85,14 @@ def git_tag():
...
@@ -85,6 +85,14 @@ def git_tag():
return
"<none>"
return
"<none>"
@
lru_cache
()
def
git_status
():
try
:
return
subprocess
.
check_output
([
git
,
"-C"
,
script_path
,
"status"
],
shell
=
False
,
encoding
=
'utf8'
)
.
strip
()
except
Exception
as
e
:
return
str
(
e
)
def
run
(
command
,
desc
=
None
,
errdesc
=
None
,
custom_env
=
None
,
live
:
bool
=
default_command_live
)
->
str
:
def
run
(
command
,
desc
=
None
,
errdesc
=
None
,
custom_env
=
None
,
live
:
bool
=
default_command_live
)
->
str
:
if
desc
is
not
None
:
if
desc
is
not
None
:
print
(
desc
)
print
(
desc
)
...
...
modules/sysinfo.py
View file @
27947a79
import
json
import
json
import
os
import
os
import
sys
import
sys
import
subprocess
import
platform
import
platform
import
hashlib
import
hashlib
import
re
import
re
import
launch
from
modules
import
paths_internal
,
timer
,
shared
,
extensions
,
errors
,
launch_utils
from
modules
import
paths_internal
,
timer
,
shared
,
extensions
,
errors
checksum_token
=
"DontStealMyGamePlz__WINNERS_DONT_USE_DRUGS__DONT_COPY_THAT_FLOPPY"
checksum_token
=
"DontStealMyGamePlz__WINNERS_DONT_USE_DRUGS__DONT_COPY_THAT_FLOPPY"
environment_whitelist
=
{
environment_whitelist
=
{
...
@@ -89,7 +88,6 @@ def get_ram_info():
...
@@ -89,7 +88,6 @@ def get_ram_info():
def
get_packages
():
def
get_packages
():
try
:
try
:
import
subprocess
return
subprocess
.
check_output
([
sys
.
executable
,
'-m'
,
'pip'
,
'freeze'
,
'--all'
])
.
decode
(
"utf8"
)
.
splitlines
()
return
subprocess
.
check_output
([
sys
.
executable
,
'-m'
,
'pip'
,
'freeze'
,
'--all'
])
.
decode
(
"utf8"
)
.
splitlines
()
except
Exception
as
pip_error
:
except
Exception
as
pip_error
:
try
:
try
:
...
@@ -104,8 +102,9 @@ def get_dict():
...
@@ -104,8 +102,9 @@ def get_dict():
res
=
{
res
=
{
"Platform"
:
platform
.
platform
(),
"Platform"
:
platform
.
platform
(),
"Python"
:
platform
.
python_version
(),
"Python"
:
platform
.
python_version
(),
"Version"
:
launch
.
git_tag
(),
"Version"
:
launch_utils
.
git_tag
(),
"Commit"
:
launch
.
commit_hash
(),
"Commit"
:
launch_utils
.
commit_hash
(),
"Git status"
:
launch_utils
.
git_status
(),
"Script path"
:
paths_internal
.
script_path
,
"Script path"
:
paths_internal
.
script_path
,
"Data path"
:
paths_internal
.
data_path
,
"Data path"
:
paths_internal
.
data_path
,
"Extensions dir"
:
paths_internal
.
extensions_dir
,
"Extensions dir"
:
paths_internal
.
extensions_dir
,
...
...
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