Skip to content

Commit 6f7cde8

Browse files
Fix ansys installation finder (#1966)
1 parent af30b32 commit 6f7cde8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/dpf/core/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def find_ansys():
183183
if base_path is None:
184184
return base_path
185185

186-
paths = base_path.glob("v*")
186+
paths = list(base_path.glob("v*"))
187187

188-
if not list(paths):
188+
if not paths:
189189
return None
190190

191191
versions = {}

0 commit comments

Comments
 (0)