From 7454eb5747de6fa8ea0012e799b0126f360a3e18 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 22 Apr 2012 02:13:14 +0200 Subject: [PATCH] Import error pwd on Windows --- couchpotato/core/helpers/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index d23e563d..1f5f76a2 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -1,7 +1,6 @@ import hashlib import os.path import platform -import pwd import re def getDataDir(): @@ -10,6 +9,7 @@ def getDataDir(): if os.name == 'nt': return os.path.join(os.environ['APPDATA'], 'CouchPotato') + import pwd os.environ['HOME'] = pwd.getpwuid(os.geteuid()).pw_dir user_dir = os.path.expanduser('~')