aboutsummaryrefslogtreecommitdiff
path: root/modules/launch_utils.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-06-03 09:59:56 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-06-03 09:59:56 +0300
commit333e63c0911c148ea306d7b72580d5c6d2f2c41a (patch)
tree48c925dc4be95b8b50305b159db2e952d1e40d35 /modules/launch_utils.py
parent9d953c0e039cce2c9d8318de9b79a09e243d3e45 (diff)
a yet another method to restart webui
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r--modules/launch_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py
index 0c8c4db0..af8d8b37 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -244,6 +244,12 @@ def prepare_environment():
codeformer_commit_hash = os.environ.get('CODEFORMER_COMMIT_HASH', "c5b4593074ba6214284d6acd5f1719b6c5d739af")
blip_commit_hash = os.environ.get('BLIP_COMMIT_HASH', "48211a1594f1321b00f14c9f7a5b4813144b2fb9")
+ try:
+ # the existance of this file is a signal to webui.sh/bat that webui needs to be restarted when it stops execution
+ os.remove(os.path.join(script_path, "tmp", "restart"))
+ except OSError:
+ pass
+
if not args.skip_python_version_check:
check_python_version()