code: def join(*paths):
  	r
  	paths_with_drives = map(os.path.splitdrive, paths)
  	drives, paths = zip(*paths_with_drives)
  	# the drive we care about is the last one in the list
  	drive = next(filter(None, reversed(drives)), '')
  	return os.path.join(drive, os.path.join(*paths))
docs: r"""
  	Wrapper around os.path.join that works with Windows drive letters.
  
  	>>> join('d:\\foo', '\\bar')
  	'd:\\bar'