Re: Moving to subprocess from os.popen--pipe closes prematurely

2008-12-12 Thread Martin P. Hellwig
Kevin Walzer wrote: Hello, I'm trying to move from os.popen to using subprocess, and I'm having trouble with the pipe suddenly closing. My old code looked something like this: Hi Kevin, You could try something more like: >>> import subprocess >>> cmd = subprocess.Popen([executable_path,

Moving to subprocess from os.popen--pipe closes prematurely

2008-12-11 Thread Kevin Walzer
Hello, I'm trying to move from os.popen to using subprocess, and I'm having trouble with the pipe suddenly closing. My old code looked something like this: #build and format a list of all packages def getAllPackages(self): self.masterlist=[] for self.catname in self.ca