convert: Accept local path on win32.

This commit is contained in:
Shun-ichi GOTO 2008-01-03 06:25:30 +09:00
parent 40a16e2ab7
commit 05e81b7348

View File

@ -51,7 +51,10 @@ def geturl(path):
except SubversionException: except SubversionException:
pass pass
if os.path.isdir(path): if os.path.isdir(path):
return 'file://%s' % os.path.normpath(os.path.abspath(path)) path = os.path.normpath(os.path.abspath(path))
if os.name == 'nt':
path = '/' + path.replace('\\', '/')
return 'file://%s' % path
return path return path
def optrev(number): def optrev(number):