MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / subprocess_window_options

Function subprocess_window_options

mobile_codex_control.py:254–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252
253
254def subprocess_window_options() -> dict[str, Any]:
255 if sys.platform != "win32":
256 return {}
257 startupinfo = subprocess.STARTUPINFO()
258 startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
259 startupinfo.wShowWindow = 0
260 return {
261 "creationflags": getattr(subprocess, "CREATE_NO_WINDOW", 0),
262 "startupinfo": startupinfo,
263 }
264
265
266def run_command(args: list[str], timeout: int = 20) -> subprocess.CompletedProcess[str]:

Callers 1

run_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected