Merge pull request #3459 from shin-/2487-split-volume-path

Always use the Windows version of splitdrive when parsing volume mappings
This commit is contained in:
Aanand Prasad 2016-05-20 11:42:43 +01:00
commit 7763122ecb
2 changed files with 11 additions and 4 deletions

View file

@ -3,6 +3,7 @@ from __future__ import unicode_literals
import functools
import logging
import ntpath
import operator
import os
import string
@ -944,7 +945,7 @@ def split_path_mapping(volume_path):
if volume_path.startswith('.') or volume_path.startswith('~'):
drive, volume_config = '', volume_path
else:
drive, volume_config = os.path.splitdrive(volume_path)
drive, volume_config = ntpath.splitdrive(volume_path)
if ':' in volume_config:
(host, container) = volume_config.split(':', 1)