Cross-platform subprocess with hidden window

后端 未结 4 1122
陌清茗
陌清茗 2020-11-28 08:18

I want to open a process in the background and interact with it, but this process should be invisible in both Linux and Windows. In Windows you have to do some stuff with S

4条回答
  •  臣服心动
    2020-11-28 08:49

    Just a note: for Python 2.7 I have to use subprocess._subprocess.STARTF_USESHOWWINDOW instead of subprocess.STARTF_USESHOWWINDOW.

提交回复
热议问题