Force windows drives to be lowercase.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-10-20 11:39:06 -04:00
commit 3f0e083585
2 changed files with 9 additions and 9 deletions

View file

@ -952,7 +952,7 @@ def normalize_paths_for_engine(external_path, internal_path):
drive, tail = os.path.splitdrive(external_path)
if drive:
reformatted_drive = "/{}".format(drive.replace(":", ""))
reformatted_drive = "/{}".format(drive.lower().replace(":", ""))
external_path = reformatted_drive + tail
external_path = "/".join(external_path.split("\\"))