Skip to content

Commit

Permalink
Simplify modifications on load_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Nov 24, 2023
1 parent abe3db1 commit 4852c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansys/dpf/gate/load_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def load_client_api(ansys_path=None):

ANSYS_PATH = ansys_path
if ANSYS_PATH is None:
ANSYS_PATH = _find_latest_dpf_server()
ANSYS_PATH = _find_latest_ansys_versions()
path = _get_api_path_from_installer_or_package(ANSYS_PATH, ISPOSIX)

return _try_load_api(path=path, name=name)
Expand All @@ -233,7 +233,7 @@ def load_grpc_client(ansys_path=None):

ANSYS_PATH = ansys_path
if ANSYS_PATH is None:
ANSYS_PATH = _find_latest_dpf_server()
ANSYS_PATH = _find_latest_ansys_versions()
path = _get_api_path_from_installer_or_package(ANSYS_PATH, ISPOSIX)

# PATH should be set only on Windows and only if working
Expand Down

0 comments on commit 4852c50

Please sign in to comment.