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 cpu_count() for incomplete PATH var on Windows and improve error handling #2379

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

MoritzBrueckner
Copy link
Collaborator

Fixes #2344 (comment).

Even though C:\Windows\System32 should be part of the PATH environment variable by default (source), there might be cases where this entry is missing and utils.cpu_count() could fail because wmic.exe could not be found.

This PR also improves the error handling in that function by also using the logical CPU count as a last resort for FileNotFoundErrors and by showing some information about what went wrong.

@MoritzBrueckner MoritzBrueckner added the Release Notes: Fixes A pull request that fixes something. Used to generate release notes. label Nov 6, 2021
@luboslenco luboslenco merged commit 15ec538 into armory3d:master Nov 8, 2021
@MoritzBrueckner MoritzBrueckner deleted the fix-cpu-count branch November 8, 2021 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Notes: Fixes A pull request that fixes something. Used to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Radiance and Environment Texture HDRI causes error during compiling
2 participants