Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
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
17 changes: 13 additions & 4 deletions src/ansys/tools/path/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,19 @@ def _get_application_path(
version: Optional[float] = None,
find: bool = True,
) -> Optional[str]:
if version is None:
exe_loc = _read_executable_path_from_config_file(product)
if exe_loc is not None:
return exe_loc
_exe_loc = _read_executable_path_from_config_file(product)
if _exe_loc is not None:
if version is None:
return _exe_loc
else:
_version = version_from_path(product, _exe_loc)
if _version == version:
return _exe_loc
else:
LOG.debug(
f"Application {product} requested version {version} does not match with {_version} "
f"in config file. Trying to find version {version} ..."
)

LOG.debug(f"{product} path not found in config file")
if not _has_plugin(product):
Expand Down