window opens with os.system()
jim-on-linux
inq1ltd at verizon.net
Sun Feb 18 16:09:23 EST 2007
python help,
I'm testing on xpPro
I have a simple module that sends text files to a
printer. Then, it moves the file to the 'Fprtd'
directory. The module contains the following
code;
#####
for n in PrtList:
os.system('type '+n+ ' > prn'
os.system('move '+n+ ' Fprtd')
#####
os.system opens and closes a window for each file
it sends to the printer and again for each time
it moves a file to the Fprtd directory. If there
were only a few files, this wouldn't be so bad.
But, when the files number 300 to 400 it becomes
objectionable.
Is there any way to supress the flashing window.
xp no longer allows the 'ctty' command.
jim-on-linux
More information about the Python-list
mailing list