Add Comments

This commit is contained in:
马一丁
2025-11-27 09:51:42 +08:00
parent 23356631f4
commit 4e882560da
8 changed files with 192 additions and 16 deletions
+2
View File
@@ -27,6 +27,7 @@ def _get_platform_specific_instructions():
system = platform.system()
def _box_lines(lines):
"""批量将多行文本包装成带边框的提示块"""
return "".join(_box_line(line) for line in lines)
if system == "Darwin": # macOS
@@ -107,6 +108,7 @@ def _ensure_windows_gtk_paths():
seen = set()
def _add_candidate(path_like):
"""收集可能的GTK安装路径,避免重复并兼容用户自定义目录"""
if not path_like:
return
p = Path(path_like)