Skip to content

Commit 1699596

Browse files
authored
Merge pull request #899 from puremourning/fix-windows-drive-letter
Normalise path letters on Windows
2 parents 901c874 + e2c3a3b commit 1699596

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python3/vimspector/core_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ def override( target_dict: typing.MutableMapping,
9999

100100
def NormalizePath( filepath ):
101101
absolute_path = os.path.abspath( filepath )
102+
# Normalise windows drive letters to uppercase
103+
drive, tail = os.path.splitdrive( absolute_path )
104+
if drive:
105+
absolute_path = drive.upper() + tail
102106
return absolute_path if os.path.isfile( absolute_path ) else filepath

0 commit comments

Comments
 (0)