diff --git a/doc/changelog.txt b/doc/changelog.txt index fd4897d9..f734a608 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -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: diff --git a/linkcheck/configuration/__init__.py b/linkcheck/configuration/__init__.py index 4d6749cd..2f9ea611 100644 --- a/linkcheck/configuration/__init__.py +++ b/linkcheck/configuration/__init__.py @@ -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)