normalizePath

This commit is contained in:
j 2010-09-01 13:31:18 +02:00
parent 51b4872d3e
commit 4a19d5f938

View file

@ -186,3 +186,8 @@ def normalizeName(name):
name = '%s %s' % (sname[1], sname[0])
return name
def normalizePath(path):
path = path.replace(':', '_').replace('/', '')
if path.endswith('.'): path = path[:-1] + '_'
return path