Here's a small Python program I use to grab the output from rake:
from subprocess import Popen, PIPE
p = Popen(args='c:\\ruby\\bin\\ruby.exe c:\\ruby\\bin\\rake -T',
data = p.stdout.read()
This is on Windows Vista. With Rails 1.2.6 there was no problem.
upgrading to Rails 2.0.1, the program now hangs at the call to the
command. If I manually kill the ruby.exe process, I get some of the
output, but not all of it.
I can run the above command from the command-line with no problem.
The rake code that Ruby loads did change moving from 1.2.6 to 2.0.1,
subprocess should run the command to completion.
I'm not sure what happens yet on XP, or other platforms. I'd like to
working on Vista, though. Any ideas.
Grokbase › Groups › Python › python-list › December 2007