Properly detect home directory on OS X systems.

This commit is contained in:
Bastian Kleineidam 2011-11-05 12:03:55 +01:00
parent 7f4bf943bb
commit 76eddb62a8
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
7.3 "" (released xx.xx.2011)
Fixes:
- configuration: properly detect home directory on OS X systems.
Closes: SF bug #3423110
7.2 "Driver" (released 20.10.2011)
Fixes:

View file

@ -53,10 +53,10 @@ distribution."""
def normpath (path):
"""
Norm given system path with all available norm funcs in os.path.
"""
return os.path.normcase(os.path.normpath(os.path.expanduser(path)))
"""Norm given system path with all available norm or expand functions
in os.path."""
expanded = os.path.expanduser(os.path.expandvars(path))
return os.path.normcase(os.path.normpath(expanded))
# List optional Python modules in the form (module, name)