Return Path object for project root property

This commit is contained in:
LIghtJUNction
2026-03-21 03:04:00 +08:00
committed by GitHub
parent 68c01cfba4
commit 37594dd74b

View File

@@ -144,7 +144,7 @@ class AstrbotPaths:
def project_root(self) -> Path:
"""获取项目根目录路径 (package root)"""
with resources.as_file(resources.files("astrbot")) as path:
return path
return Path(path)
@property
def data(self) -> Path: