MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _get_data_path

Function _get_data_path

astrbot/cli/commands/cmd_plug.py:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def _get_data_path() -> Path:
24 base = get_astrbot_root()
25 if not check_astrbot_root(base):
26 raise click.ClickException(
27 f"{base} is not a valid AstrBot root directory. Use 'astrbot init' to initialize",
28 )
29 return (base / "data").resolve()
30
31
32def display_plugins(plugins, title=None, color=None) -> None:

Callers 6

newFunction · 0.85
listFunction · 0.85
installFunction · 0.85
removeFunction · 0.85
updateFunction · 0.85
searchFunction · 0.85

Calls 2

check_astrbot_rootFunction · 0.85
get_astrbot_rootFunction · 0.50

Tested by

no test coverage detected