mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
fix limited file write (thanks, Sylwia)
This commit is contained in:
parent
e1640314df
commit
3786f3742f
@ -58,8 +58,9 @@ def apply_and_restart(disable_list, update_list, disable_all):
|
||||
|
||||
def save_config_state(name):
|
||||
current_config_state = config_states.get_config()
|
||||
if not name:
|
||||
name = "Config"
|
||||
|
||||
name = os.path.basename(name or "Config")
|
||||
|
||||
current_config_state["name"] = name
|
||||
timestamp = datetime.now().strftime('%Y_%m_%d-%H_%M_%S')
|
||||
filename = os.path.join(config_states_dir, f"{timestamp}_{name}.json")
|
||||
|
Loading…
Reference in New Issue
Block a user