Revision: 5649 Author: jayvdb Date: 2008-06-29 03:44:13 +0000 (Sun, 29 Jun 2008)
Log Message: ----------- Allow more than one bot instance to be running concurrently
Modified Paths: -------------- trunk/pywikipedia/djvutext.py
Modified: trunk/pywikipedia/djvutext.py =================================================================== --- trunk/pywikipedia/djvutext.py 2008-06-29 03:40:16 UTC (rev 5648) +++ trunk/pywikipedia/djvutext.py 2008-06-29 03:44:13 UTC (rev 5649) @@ -110,10 +110,10 @@ ################################################################
print "fetching page %d" % (pageno) - cmd = "djvutxt -page=%d %s djvutxt.out" % (pageno, self.djvu) + cmd = "djvutxt -page=%d "%s" "%s.out"" % (pageno, self.djvu, self.djvu) os.system ( cmd )
- f = codecs.open("djvutxt.out", 'r', config.textfile_encoding) + f = codecs.open("%s.out" % self.djvu, 'r', config.textfile_encoding)
djvutxt = f.read()