Re: [Spambayes] Unwanted stock solicitations

Luigi Pugnetti <[email protected]>
Newsgroups gmane.mail.spam.spambayes.devel
Organization Symbolic S.p.A.
Message-ID <[email protected]>
On Mon, 2006-11-06 at 08:22 -0600, [email protected] wrote:
>     Luigi> as long as python returns a short path you have no problem
>     Luigi> otherwise you could get a path with a space (like c:\Document and
>     Luigi> Settings\...).  It's could be required also on Linux (but as
>     Luigi> already said it's unlikely you get a path that requires quote
>     Luigi> there).  Putting quotes around pnmfile does no harm and may
>     Luigi> protect you from unusual setup
> 
> Fixed.

On windows you cannot use ' to quote a path you have to use ".

you must change
ocr = os.popen("%s -s %s -c %s -f '%s' 2>%s"

to 

ocr = os.popen('%s -s %s -c %s -f "%s" 2>%s'


sorry no patch

-- 
Luigi Pugnetti

Symbolic S.p.A.
V.le Mentana, 29
I-43100 Parma
Italy

Tel: +39 0521 708811
Fax: +39 0521 776190
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.