@@ -63,11 +63,11 @@ def reset_server():
6363 reason = "Ans.Dpf.Grpc.bat and .sh need AWP_ROOT221 for 221 install" ,
6464 )
6565 def test_start_local_custom_ansys_path (self , server_config ):
66- path = os .environ ["AWP_ROOT" + str (core ._version .__ansys_version__ )]
66+ path = os .environ ["AWP_ROOT" + str (core .misc .__ansys_version__ )]
6767 try :
68- os .unsetenv ("AWP_ROOT" + str (core ._version .__ansys_version__ ))
68+ os .unsetenv ("AWP_ROOT" + str (core .misc .__ansys_version__ ))
6969 except :
70- del os .environ ["AWP_ROOT" + str (core ._version .__ansys_version__ )]
70+ del os .environ ["AWP_ROOT" + str (core .misc .__ansys_version__ )]
7171 try :
7272 server = core .start_local_server (
7373 ansys_path = path ,
@@ -80,12 +80,12 @@ def test_start_local_custom_ansys_path(self, server_config):
8080 p = psutil .Process (server .info ["server_process_id" ])
8181 assert path in p .cwd ()
8282 os .environ [
83- "AWP_ROOT" + str (core ._version .__ansys_version__ )
84- ] = path
83+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
84+ ] = path
8585 except Exception as e :
8686 os .environ [
87- "AWP_ROOT" + str (core ._version .__ansys_version__ )
88- ] = path
87+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
88+ ] = path
8989 raise e
9090
9191 def test_start_local_no_ansys_path (self , server_config ):
@@ -107,32 +107,32 @@ def test_start_local_no_ansys_path(self, server_config):
107107 )
108108 def test_start_local_ansys_path_environment_variable (self , server_config ):
109109 awp_root = os .environ [
110- "AWP_ROOT" + str (core ._version .__ansys_version__ )
111- ]
110+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
111+ ]
112112 try :
113113 os .environ ["ANSYS_DPF_PATH" ] = awp_root
114114 try :
115- os .unsetenv ("AWP_ROOT" + str (core ._version .__ansys_version__ ))
115+ os .unsetenv ("AWP_ROOT" + str (core .misc .__ansys_version__ ))
116116 except :
117117 del os .environ [
118- "AWP_ROOT" + str (core ._version .__ansys_version__ )
119- ]
118+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
119+ ]
120120 server = core .start_local_server (
121121 use_docker_by_default = False , config = server_config
122122 )
123123 assert isinstance (server .os , str )
124124 os .environ [
125- "AWP_ROOT" + str (core ._version .__ansys_version__ )
126- ] = awp_root
125+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
126+ ] = awp_root
127127 try :
128128 os .unsetenv ("ANSYS_DPF_PATH" )
129129 except :
130130 del os .environ ["ANSYS_DPF_PATH" ]
131131
132132 except Exception as e :
133133 os .environ [
134- "AWP_ROOT" + str (core ._version .__ansys_version__ )
135- ] = awp_root
134+ "AWP_ROOT" + str (core .misc .__ansys_version__ )
135+ ] = awp_root
136136 try :
137137 os .unsetenv ("ANSYS_DPF_PATH" )
138138 except :
0 commit comments