From 848b4021a35d6c5f2ef6e15b771d004687f1779a Mon Sep 17 00:00:00 2001 From: Mug <> Date: Mon, 10 Apr 2023 17:06:58 +0200 Subject: [PATCH] Better custom library debugging --- examples/llama_cpp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/llama_cpp.py b/examples/llama_cpp.py index 63e8e97bf..89eca4bb7 100644 --- a/examples/llama_cpp.py +++ b/examples/llama_cpp.py @@ -37,6 +37,7 @@ def _load_shared_library(lib_base_name): ] if ("LLAMA_CPP_LIB" in os.environ): + lib_base_name = os.environ["LLAMA_CPP_LIB"] _lib_paths = [pathlib.Path(os.environ["LLAMA_CPP_LIB"]).resolve()] # Add the library directory to the DLL search path on Windows (if needed)