subprocess problem on WinXP
- From: Wolfgang <wollez@xxxxxxx>
- Date: Wed, 26 Jul 2006 15:58:55 +0200
Hi,
I want to compress all files (also in subfolder). The code is working more or less, but I get a black popup window (command line window) for every file to compress. How do I cave to change my system call that nothing pops up?
Wolfgang
import os
import subprocess
dir="g:\\messtech"
for root, dirs, files in os.walk(dir):
for file in files:
f=os.path.join(root,file)
subprocess.Popen([r"bzip2",'', f],shell=False).wait()
.
- Follow-Ups:
- Re: subprocess problem on WinXP
- From: Simon Forman
- Re: subprocess problem on WinXP
- Prev by Date: Re: Need a compelling argument to use Django instead of Rails
- Next by Date: Re: Need a compelling argument to use Django instead of Rails
- Previous by thread: a print bug?
- Next by thread: Re: subprocess problem on WinXP
- Index(es):
Relevant Pages
|