From 37594dd74b7d40878ae7a9fc4e94710803506cc2 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Sat, 21 Mar 2026 03:04:00 +0800 Subject: [PATCH] Return Path object for project root property --- astrbot/core/utils/astrbot_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/utils/astrbot_path.py b/astrbot/core/utils/astrbot_path.py index dd0b63100..eab87812b 100644 --- a/astrbot/core/utils/astrbot_path.py +++ b/astrbot/core/utils/astrbot_path.py @@ -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: