ocrscrape.py: use os.sep in a place i forgot to
This commit is contained in:
parent
943279ef0b
commit
835b10cf91
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user