diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index 53b71941..d23e563d 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -1,6 +1,7 @@ import hashlib import os.path import platform +import pwd import re def getDataDir(): @@ -9,6 +10,7 @@ def getDataDir(): if os.name == 'nt': return os.path.join(os.environ['APPDATA'], 'CouchPotato') + os.environ['HOME'] = pwd.getpwuid(os.geteuid()).pw_dir user_dir = os.path.expanduser('~') # OSX