From 835b10cf91a7512b96700cd207a018146344da52 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 19 Jan 2012 10:19:36 -0600 Subject: [PATCH] ocrscrape.py: use os.sep in a place i forgot to --- ocrscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)