92619edcdb
删除旧的Nuitka构建目录和生成的二进制文件 将build_nuitka/添加到.gitignore中避免误提交
16 lines
476 B
Python
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 |