diff --git a/src/ansys/dpf/core/misc.py b/src/ansys/dpf/core/misc.py index c10c42a41ba..bc0b7354b72 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 = {}