Re: suppress opening command window after using os.system command
On 12 Jun., 11:51, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 12 Jun 2008 05:28:13 -0300, boriq <[EMAIL PROTECTED]> > escribió: > > > I'm using in my script command os.system('command') on Windows XP. > > Each time the os.system command is used, python opens an empty ms-dos > > command window (the black one) and then closes it. So when in one > > script the os.system command 50 times is used, I see 50 black windows. > > > Is there a way of how to suppress this unnecessary command windows to > > be opened? > > Use the subprocess module instead of os.system > > -- > Gabriel Genellina I'm on version 2.2.1 because of a program we use and it uses this version. and the subprocess module was implemented in version 2.4 Any possibility to do it with the old stuff in ver 2.2.1? Thx -- http://mail.python.org/mailman/listinfo/python-list
suppress opening command window after using os.system command
Hi, I'm using in my script command os.system('command') on Windows XP. Each time the os.system command is used, python opens an empty ms-dos command window (the black one) and then closes it. So when in one script the os.system command 50 times is used, I see 50 black windows. Is there a way of how to suppress this unnecessary command windows to be opened? thx. Boris -- http://mail.python.org/mailman/listinfo/python-list
compiling sip on vista
Hi, I'm trying to compile sip 4.6 on windows vista. I have Python 2.5 installed in c:\Python25. I have Qt 4.3.0 installed in c:\Qt\4.3.0 together with MinGW in c: \MinGW. I have environment variable PATH set to c:\Qt\4.3.0\bin;c:\MinGW\bin And here is what I did: C:\sip-4.6>configure.py -p win32-g++ This is SIP 4.6 for Python 2.5 on win32. The SIP code generator will be installed in C:\Python25. The SIP module will be installed in C:\Python25\Lib\site-packages. The SIP header file will be installed in C:\Python25\include. The default directory to install .sip files in is C:\Python25\sip. The platform/compiler configuration is win32-g++. Creating sipconfig.py… Creating top level Makefile… Creating sip code generator Makefile… Creating sip module Makefile… C:\sip-4.6>make makefile:29: warning: overriding commands for target `.c.o' makefile:26: warning: ignoring old commands for target `.c.o' mingw32-make[1]: Entering directory `C:/sip-4.6/sipgen' gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c gcc: installation problem, cannot exec `cc1′: No such file or directory mingw32-make[1]: *** [main.o] Error 1 mingw32-make[1]: Leaving directory `C:/sip-4.6/sipgen' mingw32-make: *** [all] Error 2 C:\sip-4.6> Could anybody tell me what's wrong here and what should I make to correct that? Thanks in advance. Rg, Boris -- http://mail.python.org/mailman/listinfo/python-list
Rapyd-Tk Pmw Notebook tutorial
Hello, could anybody be so kind and write me a small tutorial about "how to create a Pmw notebook with 3 tabs each containing 5 checkboxes" with the help of Rapyd-Tk? Thanks in advance rg, boris -- http://mail.python.org/mailman/listinfo/python-list