diff options
| author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-30 08:23:12 +0300 |
|---|---|---|
| committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-30 08:23:12 +0300 |
| commit | ad3b8a1c41b8ab98b8b98c6364d13cb8b6d5fa88 (patch) | |
| tree | 06abdddc8ce62d115917e3df986c38695b2bd02b | |
| parent | 1b9ca01e4fc84590999481ae4b8d348d9c0ac1b1 (diff) | |
| download | stable-diffusion-webui-gfx803-ad3b8a1c41b8ab98b8b98c6364d13cb8b6d5fa88.tar.gz | |
alternative solution to #13434
| -rw-r--r-- | modules/restart.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/restart.py b/modules/restart.py index 18eacaf3..2dd6493b 100644 --- a/modules/restart.py +++ b/modules/restart.py @@ -14,7 +14,9 @@ def is_restartable() -> bool: def restart_program() -> None: """creates file tmp/restart and immediately stops the process, which webui.bat/webui.sh interpret as a command to start webui again""" - (Path(script_path) / "tmp" / "restart").touch() + tmpdir = Path(script_path) / "tmp" + tmpdir.mkdir(parents=True, exist_ok=True) + (tmpdir / "restart").touch() stop_program() |
