From ab58cd8cd46084f54e18c0196771423a1ea54afe Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Tue, 14 Nov 2023 14:30:45 +0100 Subject: [PATCH] Remove quotes from ANSYS_DPF_PATH env var --- 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()