Add DISABLE_VENV_LIBS env variable

This commit is contained in:
Disty0
2024-01-08 02:04:55 +03:00
parent 44cc574903
commit 8f70b7d08c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ def set_cuda_params():
args = cmd_args.parser.parse_args()
backend = 'not set'
if args.use_ipex or (hasattr(torch, 'xpu') and torch.xpu.is_available()):
if (args.use_ipex or (hasattr(torch, 'xpu') and torch.xpu.is_available())) and not args.use_openvino:
backend = 'ipex'
from modules.intel.ipex import ipex_init
ok, e = ipex_init()
+1 -1
View File
@@ -80,7 +80,7 @@ else
exit 1
fi
if [ -d "$(realpath "$venv_dir")/lib/" ]
if [ -d "$(realpath "$venv_dir")/lib/" ] && [[ -z "${DISABLE_VENV_LIBS}" ]]
then
export LD_LIBRARY_PATH=$(realpath "$venv_dir")/lib/:$LD_LIBRARY_PATH
fi