removed cache dir reset and make code more consistent

Removed user profile cache environment variable settings from the script.
This commit is contained in:
tom-m 2026-05-18 12:26:50 +09:00 committed by GitHub
parent dca779916c
commit 1a86965dd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,14 +1,8 @@
set "BASE=%~dp0"
set PYTHONNOUSERSITE=1
set PYTHONPATH=
set PYTHONHOME=
set "USERPROFILE=%BASE%user_profile_cache"
set "HOME=%BASE%user_profile_cache"
set "HF_HOME=%BASE%user_profile_cache\huggingface"
set "TORCH_HOME=%BASE%user_profile_cache\torch"
set "PYTHONNOUSERSITE=1"
set "PYTHONPATH="
set "PYTHONHOME="
..\python_embeded\python.exe -s ..\ComfyUI\main.py --windows-standalone-build --disable-api-nodes
echo If you see this and ComfyUI did not start try updating your Nvidia Drivers to the latest. If you get a c10.dll error you need to install vc redist that you can find: https://aka.ms/vc14/vc_redist.x64.exe