[python-win32] hide subshell os.system
le dahut
le.dahut at laposte.net
Fri Sep 23 12:34:21 CEST 2005
Here, it's not really an answer but it may help many people.
The ping module by Lars Strand :
http://www.gnist.org/~lars/code/ping/ping.html
Must be run as root on unix stations ...
K.
Le vendredi 23 septembre 2005 à 11:55 +0200, Thomas Heller a écrit :
> 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