[python-win32] hide subshell os.system
Thomas Heller
theller at python.net
Fri Sep 23 11:55:15 CEST 2005
le dahut <le.dahut at laposte.net> writes:
> Hi everyone,
>
> How can the subshell be hidden when executing code such as :
>
> os.system('ping host') ?
>
> The program uses GTK and it's very annoying to see a black window when
> using a graphical program ...
You should use the subprocess module instead, it is more flexible and
should allow this.
Thomas
More information about the Python-win32
mailing list