File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 2424 server_to_ansys_grpc_dpf_version ,
2525 server_to_ansys_version ,
2626)
27- from ansys .dpf .core .misc import __ansys_version__
2827from ansys .dpf .core import server_context
2928from ansys .dpf .gate import load_api , data_processing_grpcapi
3029
4241def _get_dll_path (name , ansys_path = None ):
4342 """Helper function to get the right dll path for Linux or Windows"""
4443 ISPOSIX = os .name == "posix"
45- if ansys_path is None :
46- ansys_path = os .environ .get ("ANSYS_DPF_PATH" )
47- if ansys_path is None :
48- awp_root = "AWP_ROOT" + str (__ansys_version__ )
49- ANSYS_INSTALL = os .environ .get (awp_root , None )
50- if ANSYS_INSTALL is None :
51- ANSYS_INSTALL = core .misc .find_ansys ()
52- else :
53- ANSYS_INSTALL = ansys_path
54- if ANSYS_INSTALL is None :
55- raise ImportError (f"Could not find ansys installation path using { awp_root } ." )
44+ ANSYS_INSTALL = core .misc .get_ansys_path (ansys_path )
5645 api_path = load_api ._get_path_in_install ()
5746 if api_path is None :
5847 raise ImportError (f"Could not find API path in install." )
You can’t perform that action at this time.
0 commit comments