|
|
@ -38,10 +38,9 @@ def path_replace(path):
|
|
|
|
elif path.startswith('/'):
|
|
|
|
elif path.startswith('/'):
|
|
|
|
path = path.replace('\\', '/')
|
|
|
|
path = path.replace('\\', '/')
|
|
|
|
break
|
|
|
|
break
|
|
|
|
return path.encode('utf8')
|
|
|
|
return path
|
|
|
|
|
|
|
|
|
|
|
|
def path_replace_reverse(path):
|
|
|
|
def path_replace_reverse(path):
|
|
|
|
print path
|
|
|
|
|
|
|
|
for path_mapping in path_mappings:
|
|
|
|
for path_mapping in path_mappings:
|
|
|
|
if path_mapping[1] in path:
|
|
|
|
if path_mapping[1] in path:
|
|
|
|
path = path.replace(path_mapping[1], path_mapping[0])
|
|
|
|
path = path.replace(path_mapping[1], path_mapping[0])
|
|
|
@ -50,5 +49,4 @@ def path_replace_reverse(path):
|
|
|
|
elif path.startswith('/'):
|
|
|
|
elif path.startswith('/'):
|
|
|
|
path = path.replace('\\', '/')
|
|
|
|
path = path.replace('\\', '/')
|
|
|
|
break
|
|
|
|
break
|
|
|
|
print path
|
|
|
|
return path
|
|
|
|
return path.encode('utf8')
|
|
|
|
|
|
|
|