From 8ab3eca9ecf15f9de28aea845e93e0f674769450 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:35:19 -0700 Subject: [PATCH] Add a warning for outdated installations --- modules/one_click_installer_check.py | 8 ++++++++ server.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 modules/one_click_installer_check.py diff --git a/modules/one_click_installer_check.py b/modules/one_click_installer_check.py new file mode 100644 index 00000000..29c0c546 --- /dev/null +++ b/modules/one_click_installer_check.py @@ -0,0 +1,8 @@ +from pathlib import Path +from modules.logging_colors import logger + +if Path('../webui.py').exists(): + logger.warning('\nIt looks like you are running an outdated version of ' + 'the one-click-installers.\n' + 'Please migrate your installation following the instructions here:\n' + 'https://') diff --git a/server.py b/server.py index fc99ef72..6f7b03ec 100644 --- a/server.py +++ b/server.py @@ -1,6 +1,7 @@ import os import warnings +import modules.one_click_installer_check from modules.block_requests import OpenMonkeyPatch, RequestBlocker from modules.logging_colors import logger