diff --git a/ocrscrape.py b/ocrscrape.py index 2f2d6ed..7f3bcde 100644 --- a/ocrscrape.py +++ b/ocrscrape.py @@ -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)