[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
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
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'