Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/ansys/dynamicreporting/core/serverless/adr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand Down
Loading