git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3320 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-05-29 12:44:46 +00:00
parent 36cb9017ac
commit aa743d49e5

View file

@ -56,13 +56,17 @@ win_bat_releases = ['NT', 'XP', '2000', '2003Server']
def normpath (path):
"""norm a path name to platform specific notation"""
"""
Norm a path name to platform specific notation.
"""
return os.path.normpath(path)
def cnormpath (path):
"""norm a path name to platform specific notation, but honoring
the win_compiling flag"""
"""
Norm a path name to platform specific notation, but honoring
the win_compiling flag.
"""
path = normpath(path)
if win_compiling:
# replace slashes with backslashes
@ -300,7 +304,7 @@ def cc_supports_option (cc, option):
pipe.tochild.close()
status = pipe.wait()
if os.WIFEXITED(status):
return os.WEXITSTATUS(status)==0
return os.WEXITSTATUS(status) == 0
return False