This commit is contained in:
xincheng
2026-05-17 06:50:11 +08:00
parent ecc1cfca64
commit 16940a8771
3 changed files with 44 additions and 2 deletions

View File

@@ -54,7 +54,11 @@ def _choose_candidate(candidates):
if len(candidates) == 1:
return candidates[0]
if len(candidates) > 1:
if not sys.stdin.isatty():
if (
os.environ.get("WECHAT_DECRYPT_NONINTERACTIVE") == "1"
or os.environ.get("WECHAT_DECRYPT_GUI") == "1"
or not sys.stdin.isatty()
):
return candidates[0]
print("[!] 检测到多个微信数据目录(请选择当前正在运行的微信账号):")
for i, c in enumerate(candidates, 1):