From 0a0cabc4c7587727d96283a1c17c13af451a4a19 Mon Sep 17 00:00:00 2001 From: hypnopump Date: Mon, 3 Apr 2023 08:27:00 +0200 Subject: [PATCH] for consistency --- rwkv/rwkv_cpp_shared_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rwkv/rwkv_cpp_shared_library.py b/rwkv/rwkv_cpp_shared_library.py index 9d95847..3e7c393 100644 --- a/rwkv/rwkv_cpp_shared_library.py +++ b/rwkv/rwkv_cpp_shared_library.py @@ -1,7 +1,7 @@ import os import sys import ctypes -from pathlib import Path +import pathlib from typing import Optional @@ -198,7 +198,7 @@ def load_rwkv_shared_library() -> RWKVSharedLibrary: # If we are in repo root directory f'bin/Release/{file_name}', # Fallback - Path(os.path.abspath(__file__)).parent.parent / file_name + pathlib.Path(os.path.abspath(__file__)).parent.parent / file_name ] for path in paths: