From 6f7cde8ac0b85b86c6173246a91cd49846c7500a Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Mon, 16 Dec 2024 11:45:19 +0100 Subject: [PATCH] Fix ansys installation finder (#1966) --- 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 = {}