f = open('C:/Users/visc/scratch/scratch_child/test.txt')
for line in f:
    drive, path = os.path.splitdrive(line)
path, file = os.path.split(path)
print(line.strip())
print('Drive is %s Path is %s and file is %s' % (drive, path, file))
Разделение строк пути на части диска, пути и имени файла