mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
add --dump-sysinfo, a cmd arg to dump limited sysinfo file at startup
This commit is contained in:
parent
8d54739de5
commit
d0026da483
3 changed files with 21 additions and 0 deletions
|
|
@ -434,3 +434,16 @@ def start():
|
|||
webui.api_only()
|
||||
else:
|
||||
webui.webui()
|
||||
|
||||
|
||||
def dump_sysinfo():
|
||||
from modules import sysinfo
|
||||
import datetime
|
||||
|
||||
text = sysinfo.get()
|
||||
filename = f"sysinfo-{datetime.datetime.utcnow().strftime('%Y-%m-%d-%H-%M')}.txt"
|
||||
|
||||
with open(filename, "w", encoding="utf8") as file:
|
||||
file.write(text)
|
||||
|
||||
return filename
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue