Thumbnail fix for searcher

This commit is contained in:
Ruud committed 2011-11-06 23:55:16 +01:00
1 parent 2768bf4743
commit d0da98a86b
7 files changed
+20 -14

No files matched your search

+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():