From 9399fb5371cb971bd55ebc941b5f26c12ce147f2 Mon Sep 17 00:00:00 2001 From: JeLuF Date: Tue, 25 Apr 2023 21:02:36 +0200 Subject: [PATCH] Don't use python packages from the user's home directory PYTHONNOUSERSITE is required to ignore packages installed to `/home/user/.local/`. Since these folders are outside of our control, they can cause conflicts in ED's python env. https://discord.com/channels/1014774730907209781/1100375010650103808 Fixes #1193 --- scripts/on_env_start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/on_env_start.sh b/scripts/on_env_start.sh index 4e73ca4e..af588177 100755 --- a/scripts/on_env_start.sh +++ b/scripts/on_env_start.sh @@ -4,6 +4,8 @@ source ./scripts/functions.sh printf "\n\nEasy Diffusion\n\n" +export PYTHONNOUSERSITE=y + if [ -f "scripts/config.sh" ]; then source scripts/config.sh fi