Unverified Commit 5203c850 authored by lvhan028's avatar lvhan028 Committed by GitHub
Browse files

fix getting package root path error in python3.9 (#157)

parent 0bd1fa40
......@@ -18,8 +18,8 @@ supported_formats = ['llama', 'hf']
def get_package_root_path():
import importlib.resources as pkg_resources
return pkg_resources.path('lmdeploy', '')
import lmdeploy
return Path(lmdeploy.__file__).parent
def create_workspace(_path: str):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment