Re: win32- system call - getting results back into python

2005-05-07 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > I'm trying to call a system command "svnlook log \arms" from within > python and process the results. However I'm having trouble getting the > results of the command back into python. I'm using windows if that > matters. As "runes" pointed out, you are getting caught b

Re: win32- system call - getting results back into python

2005-05-07 Thread runes
You wil have to use r"svnlook log \arms") or "svnlook log \\arms") to escape the "\". Popen usually return a file-like object, so you maye to use file methods like .read() ex: d = os.popen('dir /b') print d.read() -- http://mail.python.org/mailman/listinfo/python-list

win32- system call - getting results back into python

2005-05-07 Thread [EMAIL PROTECTED]
Hey everyone, I'm trying to call a system command "svnlook log \arms" from within python and process the results. However I'm having trouble getting the results of the command back into python. I'm using windows if that matters. Here's what I have so far: os.system("svnlook") #works but doesn'