From 39f09ca0b23645f1c14871b321a083a79aff3761 Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:33:57 +0100 Subject: [PATCH] Remove quotes from ANSYS_DPF_PATH env var (#1269) --- src/ansys/dpf/core/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ansys/dpf/core/misc.py b/src/ansys/dpf/core/misc.py index 17dd22461f..fc0051be8b 100644 --- a/src/ansys/dpf/core/misc.py +++ b/src/ansys/dpf/core/misc.py @@ -81,6 +81,8 @@ def get_ansys_path(ansys_path=None): # First check the environment variable for a custom path if ansys_path is None: ansys_path = os.environ.get("ANSYS_DPF_PATH") + if ansys_path: + ansys_path = ansys_path.replace('"', "") # Then check for usual installation folders with AWP_ROOT and installed modules if ansys_path is None: ansys_path = find_ansys()