Skip to content

Commit 60d3a41

Browse files
committed
Move slash replacement for remote paths, fix #94
1 parent 0dbc388 commit 60d3a41

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugin/python/vdebug/util.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _create_local(self,f):
103103
ret = f
104104
if ret[2] == "/":
105105
ret = ret.replace("/","\\")
106-
106+
107107
if vdebug.opts.Options.isset('path_maps'):
108108
for remote, local in vdebug.opts.Options.get('path_maps', dict).items():
109109
if remote in ret:
@@ -120,8 +120,6 @@ def _create_remote(self,f):
120120
Uses the "local_path" and "remote_path" options.
121121
"""
122122
ret = f
123-
if ret[2] == "\\":
124-
ret = ret.replace("\\","/")
125123

126124
if vdebug.opts.Options.isset('path_maps'):
127125
for remote, local in vdebug.opts.Options.get('path_maps', dict).items():
@@ -131,6 +129,10 @@ def _create_remote(self,f):
131129
vdebug.log.Logger.DEBUG)
132130
ret = ret.replace(local,remote)
133131
break
132+
133+
if ret[2] == "\\":
134+
ret = ret.replace("\\","/")
135+
134136
if self.is_win:
135137
return "file:///"+ret
136138
else:

0 commit comments

Comments
 (0)