Fix direct path replacing possibly several times

- Fixes #37
This commit is contained in:
tomkat83 2016-05-17 20:15:46 +02:00
parent bde4c8b1cf
commit 04bcaafdb4

View file

@ -2324,7 +2324,8 @@ class API():
typus = types[typus]
if utils.window('remapSMB') == 'true':
path = path.replace(utils.window('remapSMB%sOrg' % typus),
utils.window('remapSMB%sNew' % typus))
utils.window('remapSMB%sNew' % typus),
1)
# There might be backslashes left over:
path = path.replace('\\', '/')
elif utils.window('replaceSMB') == 'true':