From ca0ea5679856a7788c9943060564ddb8bfb470fb Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Thu, 12 Dec 2024 17:35:01 +0100 Subject: [PATCH] Fix ansys installation finder --- src/ansys/dpf/core/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansys/dpf/core/misc.py b/src/ansys/dpf/core/misc.py index c10c42a41b..bc0b7354b7 100644 --- a/src/ansys/dpf/core/misc.py +++ b/src/ansys/dpf/core/misc.py @@ -183,9 +183,9 @@ def find_ansys(): if base_path is None: return base_path - paths = base_path.glob("v*") + paths = list(base_path.glob("v*")) - if not list(paths): + if not paths: return None versions = {}