From 24d250fe09a15d9a6740aff7752d4b9b4a1bd07c Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 21 May 2017 23:39:40 +0200 Subject: [PATCH] Chagned to use os.path.join for better accuraccy. --- classedStray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classedStray.py b/classedStray.py index 851095c..52a8c30 100755 --- a/classedStray.py +++ b/classedStray.py @@ -3,7 +3,7 @@ # @Author: KevinMidboe # @Date: 2017-04-05 18:40:11 # @Last Modified by: KevinMidboe -# @Last Modified time: 2017-05-15 11:55:52 +# @Last Modified time: 2017-05-21 23:38:33 import os.path, hashlib, time, glob, sqlite3, re, json, tweepy import logging from functools import reduce @@ -90,7 +90,7 @@ class strayEpisode(object): return file def analyseSubtitles(self, subFile): - f = open('/'.join([env.show_dir, self.parent, subFile]), 'r', encoding='ISO-8859-15') + f = open(os.path.join([env.show_dir, self.parent, subFile]), 'r', encoding='ISO-8859-15') language = detect(f.read()) f.close()