Windows special chars not returning any folders

This commit is contained in:
Ruud
2014-10-05 13:38:22 +02:00
parent f897eebb41
commit ab118ea580
2 changed files with 22 additions and 11 deletions
+2 -2
View File
@@ -41,11 +41,11 @@ def symlink(src, dst):
def getUserDir():
try:
import pwd
os.environ['HOME'] = pwd.getpwuid(os.geteuid()).pw_dir
os.environ['HOME'] = sp(pwd.getpwuid(os.geteuid()).pw_dir)
except:
pass
return os.path.expanduser('~')
return sp(os.path.expanduser('~'))
def getDownloadDir():