From 8e51ecb2972eadce4fd1309f9922014fb7f1fec8 Mon Sep 17 00:00:00 2001 From: tom-m <61305041+Tom-M-Git@users.noreply.github.com> Date: Mon, 18 May 2026 03:17:33 +0900 Subject: [PATCH] fix: prevent user-site package leakage Set environment variables for user profile and cache paths before running the Python script. --- .ci/windows_amd_base_files/run_amd_gpu.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.ci/windows_amd_base_files/run_amd_gpu.bat b/.ci/windows_amd_base_files/run_amd_gpu.bat index 274d7c948..19a456cce 100755 --- a/.ci/windows_amd_base_files/run_amd_gpu.bat +++ b/.ci/windows_amd_base_files/run_amd_gpu.bat @@ -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 pause