Thumbnail fix for searcher

This commit is contained in:
Ruud
2011-11-06 23:55:16 +01:00
parent 2768bf4743
commit d0da98a86b
7 changed files with 20 additions and 14 deletions
+4 -6
View File
@@ -5,13 +5,11 @@ import re
def getDataDir():
# Windows
try:
from win32com.shell import shellcon, shell
return os.path.join(shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0), 'CouchPotato')
dir = os.path.expanduser("~")
except ImportError:
dir = os.path.expanduser("~")
# Windows
if os.name == 'nt':
return os.path.join(dir, 'CouchPotato')
# OSX
if 'darwin' in platform.platform().lower():