Browse Source

Import error pwd on Windows

pull/152/head
Ruud 13 years ago
parent
commit
7454eb5747
  1. 2
      couchpotato/core/helpers/variable.py

2
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('~')

Loading…
Cancel
Save