mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-20 23:14:32 +08:00
refactor: simplify directory list for agent configuration
This commit is contained in:
@@ -421,10 +421,7 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
|
||||
:return: 普通用户允许读写的本地目录列表
|
||||
"""
|
||||
roots = [
|
||||
settings.CONFIG_PATH,
|
||||
settings.LOG_PATH,
|
||||
settings.CONFIG_PATH / "agent" / "memory",
|
||||
settings.CONFIG_PATH / "agent" / "activity",
|
||||
settings.CONFIG_PATH / "agent"
|
||||
]
|
||||
resolved_roots = []
|
||||
for root in roots:
|
||||
|
||||
Reference in New Issue
Block a user