Re: confusing behaviour of os.system

2006-04-06 Thread Ben Finney
"Todd" <[EMAIL PROTECTED]> writes: > Ben Cartwright wrote: > > >>> print '/usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-file> > > >>> \"test.c\")"' > > /usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-file> "test.c")" > > >>> print '/usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-

Re: confusing behaviour of os.system

2006-04-06 Thread Todd
Ben Cartwright wrote: > Todd wrote: > > I'm trying to run the following in python. > > > > os.system('/usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-file > > \"test.c\")"') > > Python is interpreting the \"s as "s before it's being passed to > os.system. Try doubling the backslashes. > > >>

Re: confusing behaviour of os.system

2006-04-06 Thread Ben Cartwright
Todd wrote: > I'm trying to run the following in python. > > os.system('/usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-file > \"test.c\")"') Python is interpreting the \"s as "s before it's being passed to os.system. Try doubling the backslashes. >>> print '/usr/bin/gnuclient -batch -l htm

confusing behaviour of os.system

2006-04-06 Thread Todd
I'm trying to run the following in python. os.system('/usr/bin/gnuclient -batch -l htmlize -eval "(htmlize-file \"test.c\")"') This connects to xemacs with gnuclient and runs htmlize. If I run it from a shell, xemacs gives me an error, but it generates the html file just fine. If I run the same