Skip to content

Commit 4040af6

Browse files
Fix LLAVA_CPP_LIB creating empty path
The LLAVA_CPP_LIB environmental variable was correctly checked for, but if found, an empty path was created.
1 parent 7c4aead commit 4040af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llava_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# Specify the base name of the shared library to load
3737
_libllava_base_name = "llava"
3838
_libllava_override_path = os.environ.get("LLAVA_CPP_LIB")
39-
_libllava_base_path = pathlib.Path(os.path.abspath(os.path.dirname(__file__))) / "lib" if _libllava_override_path is None else pathlib.Path()
39+
_libllava_base_path = pathlib.Path(os.path.abspath(os.path.dirname(__file__))) / "lib" if _libllava_override_path is None else pathlib.Path(_libllava_override_path)
4040

4141
# Load the library
4242
_libllava = load_shared_library(_libllava_base_name, _libllava_base_path)

0 commit comments

Comments
 (0)