Unverified Commit a51840fa authored by Osma Suominen's avatar Osma Suominen Committed by GitHub
Browse files

Robustness fix: don't break in case of directories without read permission

parent 18e827d6
...@@ -214,8 +214,11 @@ def get_cuda_runtime_lib_paths(candidate_paths: Set[Path]) -> Set[Path]: ...@@ -214,8 +214,11 @@ def get_cuda_runtime_lib_paths(candidate_paths: Set[Path]) -> Set[Path]:
paths = set() paths = set()
for libname in CUDA_RUNTIME_LIBS: for libname in CUDA_RUNTIME_LIBS:
for path in candidate_paths: for path in candidate_paths:
try:
if (path / libname).is_file(): if (path / libname).is_file():
paths.add(path / libname) paths.add(path / libname)
except PermissionError:
pass
return paths return paths
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment