fix: PluginService自动从.example模板创建config.yaml (Windows兼容)
根因: Sentinel的config.yaml被gitignore, 首次运行时 load_plugin()要求config.yaml存在才能继续, 但Sentinel的 自动复制逻辑在initialize()中, 太晚了。 修复: PluginService.load_plugin()检测缺失时自动复制模板 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import logging
|
||||
import asyncio
|
||||
import os
|
||||
import time
|
||||
import shutil
|
||||
import yaml
|
||||
import urllib.request
|
||||
import json as _json
|
||||
|
||||
Reference in New Issue
Block a user