Skip to content

Commit 895cf38

Browse files
authored
enve: delay check in apex dir (#403)
Co-authored-by: viseshrp <[email protected]>
1 parent 393435e commit 895cf38

File tree

1 file changed

+14
-14
lines changed
  • src/ansys/dynamicreporting/core/serverless

1 file changed

+14
-14
lines changed

src/ansys/dynamicreporting/core/serverless/adr.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,9 @@ def setup(self, collect_static: bool = False) -> None:
384384
try:
385385
import enve
386386
except ImportError:
387-
if platform.system().startswith("Wind"):
387+
if platform.system().lower().startswith("win"):
388388
dirs_to_check = [
389-
# Windows path from apex folder
390-
self._ansys_installation
391-
/ f"apex{self._ansys_version}"
392-
/ "machines"
393-
/ "win64"
394-
/ "CEI",
395-
# Windows path
389+
# Windows path from commonfiles
396390
self._ansys_installation.parent
397391
/ "commonfiles"
398392
/ "ensight_components"
@@ -403,16 +397,16 @@ def setup(self, collect_static: bool = False) -> None:
403397
/ "fluids"
404398
/ "ensight_components"
405399
/ "winx64",
406-
]
407-
else: # Linux
408-
dirs_to_check = [
409-
# New Linux path from apex folder
400+
# Windows path from apex folder
410401
self._ansys_installation
411402
/ f"apex{self._ansys_version}"
412403
/ "machines"
413-
/ "linux_2.6_64"
404+
/ "win64"
414405
/ "CEI",
415-
# New Linux path from commonfiles
406+
]
407+
else: # Linux
408+
dirs_to_check = [
409+
# Linux path from commonfiles
416410
self._ansys_installation.parent
417411
/ "commonfiles"
418412
/ "ensight_components"
@@ -423,6 +417,12 @@ def setup(self, collect_static: bool = False) -> None:
423417
/ "fluids"
424418
/ "ensight_components"
425419
/ "linx64",
420+
# Linux path from apex folder
421+
self._ansys_installation
422+
/ f"apex{self._ansys_version}"
423+
/ "machines"
424+
/ "linux_2.6_64"
425+
/ "CEI",
426426
]
427427

428428
module_found = False

0 commit comments

Comments
 (0)