From 703f98782543b643b9e0dc27f1c20441ec331a3c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 6 Oct 2022 11:25:14 +0530 Subject: [PATCH] Copy the dev console script on the first update. Temporary until enough people have this update --- scripts/on_sd_start.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index 34ccdf83..4481c384 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -5,6 +5,8 @@ @REM Caution, this file will make your eyes and brain bleed. It's such an unholy mess. @REM Note to self: Please rewrite this in Python. For the sake of your own sanity. +@copy "sd-ui-files\scripts\Open Developer Console.cmd" . /Y + @call python -c "import os; import shutil; frm = 'sd-ui-files\\ui\\hotfix\\9c24e6cd9f499d02c4f21a033736dabd365962dc80fe3aeb57a8f85ea45a20a3.26fead7ea4f0f843f6eb4055dfd25693f1a71f3c6871b184042d4b126244e142'; dst = os.path.join(os.path.expanduser('~'), '.cache', 'huggingface', 'transformers', '9c24e6cd9f499d02c4f21a033736dabd365962dc80fe3aeb57a8f85ea45a20a3.26fead7ea4f0f843f6eb4055dfd25693f1a71f3c6871b184042d4b126244e142'); shutil.copyfile(frm, dst) if os.path.exists(dst) else print(''); print('Hotfixed broken JSON file from OpenAI');" @>nul grep -c "sd_git_cloned" scripts\install_status.txt