Patch for genAM.py (ocropus and iulib) for Python 2.3.4

3 views
Skip to first unread message

Michael Moore

unread,
Jun 28, 2009, 6:40:58 PM6/28/09
to ocr...@googlegroups.com
Here's my humble first contribution to OCRopus...


I am trying to build OCRopus on a Bluehost server so I can use it as
part of a web service. Bluehost's version of Python is 2.3.4 (at
least on the machine my site is hosted on).

Their Python doesn't like the for loop inside the join statement.

Lines like this:
print "bin_PROGRAMS = " + s.join(" " + os.path.basename(b)[:-3] for b
in binaries)

become this:
print "bin_PROGRAMS = "
for b in binaries:
print " " + os.path.basename(b)[:-3]

genAM.py modified this way and works for both iulib and ocropus on
Bluehost's servers.

Thank you,
--
Michael Moore
-------------------------
Share your families' genealogy and family history books. It's easy and
free : http://bookscanned.com

iulib_genAM.diff
ocropus_genAM.diff

tmbdev

unread,
Jun 29, 2009, 5:39:11 AM6/29/09
to ocropus
Thanks for the submission.

It's best to submit patches as attachments to issues. If you submit
them in the mailing list, we may lose track of them or not notice
them.

Tom
>  iulib_genAM.diff
> < 1KViewDownload
>
>  ocropus_genAM.diff
> < 1KViewDownload
Reply all
Reply to author
Forward
0 new messages