import{_ as i,c as a,ae as t,o as n}from"./chunks/framework.BzDBnRMZ.js";const u=JSON.parse('{"title":"utils","description":"","frontmatter":{"title":"utils","order":100},"headers":[],"relativePath":"en/dev/api/plugin/utils.md","filePath":"en/dev/api/plugin/utils.md","lastUpdated":1734175019000}'),e={name:"en/dev/api/plugin/utils.md"};function l(p,s,h,r,o,k){return n(),a("div",null,s[0]||(s[0]=[t('

Module nonebot_plugin_marshoai.plugin.utils


func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:\n    rel_path = path.resolve().relative_to(Path.cwd().resolve())\n    if rel_path.stem == '__init__':\n        return '.'.join(rel_path.parts[:-1])\n    else:\n        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func parse_function_docsring()

Source code or View on GitHub
python
def parse_function_docsring():\n    pass
',11)]))}const g=i(e,[["render",l]]);export{u as __pageData,g as default};