chore: anchor fresh-start history to upstream

This commit is contained in:
2026-09-16 15:06:54 +08:00
parent 64a9b43261
commit 012c9c6bed
3514 changed files with 48322 additions and 187346 deletions
+2 -12
View File
@@ -13,8 +13,6 @@ import sys
from pathlib import Path
from typing import Any, Callable, List, Optional, Tuple
_log = logging.getLogger(__name__)
_PLUGINS_ROOT = Path(__file__).parent
@@ -41,16 +39,8 @@ def iter_plugin_dirs(root: Path) -> List[Path]:
"""Sorted child dirs of *root* that have an ``__init__.py`` (skips ``_``/``.`` names)."""
if not root.is_dir():
return []
dirs: List[Path] = []
for child in sorted(root.iterdir()):
if child.name.startswith(("_", ".")):
continue
try:
if child.is_dir() and (child / "__init__.py").exists():
dirs.append(child)
except OSError as exc: # one mode-000 / ACL-denied child must not abort the listing
_log.warning("Skipping unreadable plugin directory %s: %s", child, exc)
return dirs
return [child for child in sorted(root.iterdir())
if child.is_dir() and not child.name.startswith(("_", ".")) and (child / "__init__.py").exists()]
def read_plugin_description(plugin_dir: Path) -> str: