We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bbbbe7 commit 526e0aaCopy full SHA for 526e0aa
backend/plugin/tools.py
@@ -46,7 +46,7 @@ def get_plugins() -> list[str]:
46
47
# 遍历插件目录
48
for item in os.listdir(PLUGIN_DIR):
49
- if item.endswith('.py') or item.endswith('backup') or item == '__pycache__':
+ if not os.path.isdir(os.path.join(PLUGIN_DIR, item)) and item == '__pycache__':
50
continue
51
52
item_path = os.path.join(PLUGIN_DIR, item)
0 commit comments