normalizePath
This commit is contained in:
parent
51b4872d3e
commit
4a19d5f938
1 changed files with 5 additions and 0 deletions
|
@ -186,3 +186,8 @@ def normalizeName(name):
|
||||||
name = '%s %s' % (sname[1], sname[0])
|
name = '%s %s' % (sname[1], sname[0])
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
def normalizePath(path):
|
||||||
|
path = path.replace(':', '_').replace('/', '')
|
||||||
|
if path.endswith('.'): path = path[:-1] + '_'
|
||||||
|
return path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue