Patch inspired by Just van Rossum: on the Mac, in savefilename(), make

the path to save a relative path by prefixing it with os.sep (':').
Also fix an indent inconsistency in the same function.
This commit is contained in:
Guido van Rossum 2000-04-25 21:13:24 +00:00
parent c009d198db
commit f3335e193b

View file

@ -98,6 +98,8 @@ class Sucker(webchecker.Checker):
path = path + "index.html"
if os.sep != "/":
path = string.join(string.split(path, "/"), os.sep)
if os.name == "mac":
path = os.sep + path
path = os.path.join(host, path)
return path