mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-11 00:37:53 +08:00
fix: prevent user-site package leakage
Set environment variables for user profile and cache paths before running the Python script.
This commit is contained in:
parent
3b3b65a087
commit
601a7eb213
@ -1,2 +1,14 @@
|
||||
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"
|
||||
|
||||
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast
|
||||
pause
|
||||
|
||||
Loading…
Reference in New Issue
Block a user