Skip to content

Commit

Permalink
make default value of install path None and add EnSight install case …
Browse files Browse the repository at this point in the history
…in libuserd search for install (#461)
  • Loading branch information
mariostieriansys authored Oct 17, 2024
1 parent 3731551 commit e2d4955
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/ansys/pyensight/core/libuserd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,13 @@ def _find_ensight_server_name(ansys_installation: str = "") -> Optional[str]:
# ways, we'll add that one too, just in case.
dirs_to_check.append(os.path.join(env_inst, "CEI"))

try:
import enve

dirs_to_check.append(enve.home())
except ModuleNotFoundError:
pass

if "CEI_HOME" in os.environ:
env_inst = os.environ["CEI_HOME"]
dirs_to_check.append(env_inst)
Expand Down
6 changes: 1 addition & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
$ pytest tests --install-path "/ansys_inc/v231/CEI/bin/ensight"
TODO: Default must be set to the one on the CI/CD server.
"""
parser.addoption(
"--install-path",
action="store",
default=f"/ansys_inc/v{ansys.pyensight.core.__ansys_version__}/",
)
parser.addoption("--install-path", action="store")
parser.addoption("--use-local-launcher", default=False, action="store_true")


Expand Down

0 comments on commit e2d4955

Please sign in to comment.