Files
crawl-tiktok-video/src/utils.py
T
Serendipity 92619edcdb chore: 清理构建产物并更新.gitignore
删除旧的Nuitka构建目录和生成的二进制文件
将build_nuitka/添加到.gitignore中避免误提交
2026-02-10 16:42:29 +08:00

16 lines
476 B
Python

import os
def find_edge_path():
"""
[Utils] 自动查找 Edge 浏览器路径,提升用户体验
"""
possible_paths = [
r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe",
r"C:\Program Files\Microsoft\Edge\Application\msedge.exe",
os.path.expanduser(r"~\AppData\Local\Microsoft\Edge\Application\msedge.exe"),
]
for path in possible_paths:
if os.path.exists(path):
return path
return None