File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -294,15 +294,19 @@ def get_matlab_settings():
294
294
)
295
295
matlab_lic_mode = ["-licmode" , "file" ] if nlm_conn_str else ""
296
296
# flag to hide MATLAB Window
297
- flag_to_hide_desktop = "-noDisplayDesktop" if system .is_windows () else "-nodesktop"
297
+ flag_to_hide_desktop = (
298
+ ["-noDisplayDesktop" , "-wait" , "-log" ]
299
+ if system .is_windows ()
300
+ else ["-nodesktop" ]
301
+ )
298
302
matlab_startup_file = str (Path (__file__ ).resolve ().parent / "matlab" / "startup.m" )
299
303
return {
300
304
"matlab_path" : matlab_root_path ,
301
305
"matlab_version" : get_matlab_version (matlab_root_path ),
302
306
"matlab_cmd" : [
303
307
matlab_executable_path ,
304
308
"-nosplash" ,
305
- flag_to_hide_desktop ,
309
+ * flag_to_hide_desktop ,
306
310
"-softwareopengl" ,
307
311
* matlab_lic_mode ,
308
312
"-r" ,
Original file line number Diff line number Diff line change 1
- # Copyright 2022 The MathWorks, Inc.
1
+ # Copyright 2022-2023 The MathWorks, Inc.
2
2
import asyncio
3
3
4
4
from matlab_proxy import util
@@ -49,6 +49,7 @@ async def start_matlab(matlab_cmd, matlab_env):
49
49
intermediate_proc = await asyncio .create_subprocess_exec (
50
50
* matlab_cmd ,
51
51
env = matlab_env ,
52
+ stdout = asyncio .subprocess .PIPE ,
52
53
stderr = asyncio .subprocess .STDOUT ,
53
54
)
54
55
You can’t perform that action at this time.
0 commit comments