def process_startup_info(): if not is_windows(): return None startupinfo = sub.STARTUPINFO() startupinfo.dwFlags |= sub.STARTF_USESHOWWINDOW startupinfo.wShowWindow = sub.SW_HIDE return startupinfo