Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check directory before listdir #177

Merged
merged 1 commit into from
Jan 7, 2025
Merged

fix: check directory before listdir #177

merged 1 commit into from
Jan 7, 2025

Conversation

howird
Copy link

@howird howird commented Oct 10, 2024

  • function _ensure_egl_icd() crashes when calling os.listdir() on one of ["/usr/share/glvnd/egl_vendor.d", "/etc/glvnd/egl_vendor.d"] paths if they do not exist
  • checking with os.path.isdir(d) makes sure 1. the path exists and 2. the path is a directory

@fbxiang fbxiang merged commit 39f8f36 into haosulab:dev Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants