diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-06-05 20:06:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 20:06:40 +0300 |
commit | 1dd8d571a4fa053633314657c78032a5b83a7cb5 (patch) | |
tree | 3b6c643d969e1dd164fbee5d835ab02d0a47d487 /modules/shared.py | |
parent | 18acc0b30d9184702a772287ed8197385e0aed98 (diff) | |
parent | 46a5bd64edece07f521409f0adace6cdd6f30a40 (diff) |
Merge pull request #11043 from akx/restart-envvar
Restart: only do restart if running via the wrapper script
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 9 |
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)
|