ocrscrape.py: use os.sep in a place i forgot to

This commit is contained in:
Brian S. Stephan 2012-01-19 10:19:36 -06:00
parent 943279ef0b
commit 835b10cf91
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class OCRScraperWorker(threading.Thread):
ocr = self._identify_ocr_data_from_url(ocr_str)
# check if the file exists already
do_download = False
filename = os.path.abspath(os.path.abspath(self.directory) + '/' + ocr.filename)
filename = os.path.abspath(os.path.abspath(self.directory) + os.sep + ocr.filename)
if os.path.isfile(filename):
if self._file_checksum_matches(filename, ocr):
os.utime(filename, None)