From 1024da601dd1f12dd89020cd12608683710dc19b Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Sat, 8 Oct 2022 12:06:11 +0530 Subject: [PATCH] Set a custom temp path to workaround the pip bug --- scripts/on_sd_start.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index b857451a..e061502d 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -8,6 +8,9 @@ @copy "sd-ui-files\scripts\Developer Console.cmd" . /Y if exist "Open Developer Console.cmd" del "Open Developer Console.cmd" +set TMP=%cd%\tmp +set TEMP=%cd%\tmp + @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