diff --git a/scripts/add_plugins.py b/scripts/add_plugins.py index 5e99f1d..73dbdb5 100644 --- a/scripts/add_plugins.py +++ b/scripts/add_plugins.py @@ -2,7 +2,7 @@ import os import sys def create_plugin(plugin_name): - base = os.path.dirname(__file__) + base = os.path.dirname(os.path.abspath(__file__)) plugin_dir = os.path.join(base, "../plugins") os.makedirs(plugin_dir, exist_ok=True) @@ -10,7 +10,7 @@ def create_plugin(plugin_name): file_path = os.path.join(plugin_dir, file_name) if os.path.exists(file_path): - print(f"插件已存在") + print("插件已存在") return template = f'''from core.managers.command_manager import matcher