Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-12-16 18:02:19 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2025-12-16 18:02:19 +0800
Commit
746643e1dc0d49066217dfc3b2c702ffca21bfbd
746643e1
2 parents
d9efd4a4
7ecc77d3
Merge pull request #474 from W-ay/main
fix: 修复扫描GTK安装路径时,当硬盘不存在/加密时,程序会报错退出
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
ReportEngine/utils/dependency_check.py
ReportEngine/utils/dependency_check.py
View file @
746643e
...
...
@@ -145,9 +145,15 @@ def _ensure_windows_gtk_paths():
common_names
=
[
"GTK3-Runtime Win64"
,
"GTK3-Runtime Win32"
,
"GTK3-Runtime"
]
for
drive
in
common_drives
:
root
=
Path
(
f
"{drive}:/"
)
# 检测路径是否存在并可访问
try
:
if
root
.
exists
():
for
name
in
common_names
:
default_dirs
.
append
(
root
/
name
)
default_dirs
.
append
(
root
/
"DevelopSoftware"
/
name
)
except
OSError
as
e
:
# print(f'盘{drive}不存在或被加密,已跳过')
pass
# 扫描 Program Files 下所有以 GTK 开头的目录,适配自定义安装目录名
for
root
in
(
program_files
,
program_files_x86
):
...
...
Please
register
or
login
to post a comment