Fix issue with cp.push (#36136)

Incorrect handling of os.path.splitdrive()
This commit is contained in:
Mike Place 2016-09-09 00:27:28 +09:00 committed by Nicole Thomas
parent 0e13118f6e
commit 6242702288

View File

@ -787,7 +787,7 @@ def push(path, keep_symlinks=False, upload_path=None):
load_path_normal = os.path.normpath(load_path)
# If this is Windows and a drive letter is present, remove it
load_path_split_drive = os.path.splitdrive(load_path_normal)[1:]
load_path_split_drive = os.path.splitdrive(load_path_normal)[1]
# Finally, split the remaining path into a list for delivery to the master
load_path_list = os.path.split(load_path_split_drive)