-
Notifications
You must be signed in to change notification settings - Fork 25
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 ansys installation finder #1966
Conversation
|
||
if not list(paths): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paths
is a generator, it gets exhausted after first read
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1966 +/- ##
==========================================
- Coverage 88.42% 88.37% -0.06%
==========================================
Files 89 89
Lines 10265 10251 -14
==========================================
- Hits 9077 9059 -18
- Misses 1188 1192 +4 |
Thanks for catching this @FedericoNegri . |
@cbellot000 I can't merge because of codecov |
It's supposed to be optional, do you see: |
if it's ready, I can complete for you. Is that good with you? |
@cbellot000 yes, please merge it, thanks |
The changes in this PR broke the Ansys finder, at least on Linux. See code comments for a description of the changes.
Tested on a Linux machine with Ansys installed at
/ansys_inc/v251
using a minimal script replicating the logic in the functionfind_ansys
.Original script:
Output:
Diff of fixed script (same as this PR):
Output: