@@ -108,11 +108,6 @@ def run(self, cmds: str) -> str | None:
108
108
"MAPDL executable path must be an absolute path to an existing file."
109
109
)
110
110
111
- if self .version == 25.2 :
112
- env = {"MAPDL_PYTHON_ENV" : os .getenv ("MAPDL_PYTHON_ENV" , sys .prefix )}
113
- else :
114
- env = {}
115
-
116
111
try :
117
112
args = [
118
113
exec_path ,
@@ -121,18 +116,16 @@ def run(self, cmds: str) -> str | None:
121
116
"input.mac" ,
122
117
"-o" ,
123
118
"out.out" ,
124
- os .getenv ("PYMAPDL_ADDITIONAL_SWITCHES" , "" ),
125
119
]
126
120
127
121
self .completed_process = subprocess .run (
128
122
args = args ,
129
123
cwd = self .wdir ,
130
124
check = True ,
131
125
capture_output = True ,
132
- env = env ,
133
- # it does not support shell=True, because it does not
134
- # generate the out.out file
135
- # TODO: Why shell should be false in order to generate the output file?
126
+ # # it does not support shell=True, because it does not
127
+ # # generate the out.out file
128
+ # # TODO: Why shell should be false in order to generate the output file?
136
129
shell = False , # nosec B603
137
130
)
138
131
@@ -183,10 +176,9 @@ def test_python_path(mapdl_inprocess: MapdlInProcessRunner):
183
176
"""
184
177
output_content = mapdl_inprocess .run (cmds )
185
178
assert mapdl_inprocess .status_code == 0
186
-
187
179
assert output_content is not None
188
180
assert "Testing Python path" in output_content
189
- assert sys .executable in output_content
181
+ assert sys .executable . replace ( ' \\ \\ ' , ' \\ ' ). lower () in output_content . lower ()
190
182
assert "test ends" in output_content
191
183
192
184
0 commit comments