aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-06-05 17:04:28 +0000
committerAarni Koskela <akx@iki.fi>2023-06-05 17:04:28 +0000
commit46a5bd64edece07f521409f0adace6cdd6f30a40 (patch)
tree8fc0025162e06ec47090477bf69b70eb7c22d643 /modules/shared.py
parent9781f31f74c1f6acf8e1260f076aeb7a71e2766f (diff)
downloadstable-diffusion-webui-gfx803-46a5bd64edece07f521409f0adace6cdd6f30a40.tar.gz
stable-diffusion-webui-gfx803-46a5bd64edece07f521409f0adace6cdd6f30a40.tar.bz2
stable-diffusion-webui-gfx803-46a5bd64edece07f521409f0adace6cdd6f30a40.zip
Restart: only do restart if running via the wrapper script
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 2bd7c6ec..c9ee2dd1 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -853,12 +853,3 @@ def walk_files(path, allowed_extensions=None):
continue
yield os.path.join(root, filename)
-
-
-def restart_program():
- """creates file tmp/restart and immediately stops the process, which webui.bat/webui.sh interpret as a command to start webui again"""
-
- with open(os.path.join(script_path, "tmp", "restart"), "w"):
- pass
-
- os._exit(0)