mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 00:40:30 +00:00
Properly detect home directory on OS X systems.
This commit is contained in:
parent
7f4bf943bb
commit
76eddb62a8
2 changed files with 11 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue