mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
Return Path object for project root property
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user