summaryrefslogtreecommitdiffstats
path: root/Lib/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/user.py')
-rw-r--r--Lib/user.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/user.py b/Lib/user.py
index d0cb3ed..e550e52 100644
--- a/Lib/user.py
+++ b/Lib/user.py
@@ -26,6 +26,8 @@ import os
home = os.curdir # Default
if 'HOME' in os.environ:
home = os.environ['HOME']
+elif os.name == 'posix':
+ home = os.path.expanduser("~/")
elif os.name == 'nt': # Contributed by Jeff Bauer
if 'HOMEPATH' in os.environ:
if 'HOMEDRIVE' in os.environ: