From 84a187979b5a525ea5f5a27178507be1c1668db4 Mon Sep 17 00:00:00 2001 From: viseshrp <11642379+viseshrp@users.noreply.github.com> Date: Tue, 16 Sep 2025 15:47:32 -0400 Subject: [PATCH 1/2] enve: delay check in apex dir --- .../dynamicreporting/core/serverless/adr.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ansys/dynamicreporting/core/serverless/adr.py b/src/ansys/dynamicreporting/core/serverless/adr.py index 121d06fd0..beeb5c14c 100644 --- a/src/ansys/dynamicreporting/core/serverless/adr.py +++ b/src/ansys/dynamicreporting/core/serverless/adr.py @@ -384,15 +384,9 @@ def setup(self, collect_static: bool = False) -> None: try: import enve except ImportError: - if platform.system().startswith("Wind"): + if platform.system().lower().startswith("win"): dirs_to_check = [ - # Windows path from apex folder - self._ansys_installation - / f"apex{self._ansys_version}" - / "machines" - / "win64" - / "CEI", - # Windows path + # Windows path from commonfiles self._ansys_installation.parent / "commonfiles" / "ensight_components" @@ -403,16 +397,16 @@ def setup(self, collect_static: bool = False) -> None: / "fluids" / "ensight_components" / "winx64", - ] - else: # Linux - dirs_to_check = [ - # New Linux path from apex folder + # Windows path from apex folder self._ansys_installation / f"apex{self._ansys_version}" / "machines" - / "linux_2.6_64" + / "win64" / "CEI", - # New Linux path from commonfiles + ] + else: # Linux + dirs_to_check = [ + # Linux path from commonfiles self._ansys_installation.parent / "commonfiles" / "ensight_components" @@ -423,6 +417,12 @@ def setup(self, collect_static: bool = False) -> None: / "fluids" / "ensight_components" / "linx64", + # Linux path from apex folder + self._ansys_installation + / f"apex{self._ansys_version}" + / "machines" + / "linux_2.6_64" + / "CEI", ] module_found = False From 108cda5a2eeaddecfc570fd10d1ec1363d45448d Mon Sep 17 00:00:00 2001 From: viseshrp <11642379+viseshrp@users.noreply.github.com> Date: Tue, 16 Sep 2025 15:49:16 -0400 Subject: [PATCH 2/2] Update adr.py --- src/ansys/dynamicreporting/core/serverless/adr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/dynamicreporting/core/serverless/adr.py b/src/ansys/dynamicreporting/core/serverless/adr.py index beeb5c14c..220ebdde3 100644 --- a/src/ansys/dynamicreporting/core/serverless/adr.py +++ b/src/ansys/dynamicreporting/core/serverless/adr.py @@ -384,7 +384,7 @@ def setup(self, collect_static: bool = False) -> None: try: import enve except ImportError: - if platform.system().lower().startswith("win"): + if platform.system().lower().startswith("win"): dirs_to_check = [ # Windows path from commonfiles self._ansys_installation.parent