code: def updrive(path):
      
      drive, rest = os.path.splitdrive(path)
      if drive:
          path = drive.upper() + rest
      return path
docs: Make the drive letter (if any) upper case.
      This is useful because Windows is inconsistent on the case
      of the drive letter, which can cause inconsistencies when
      calculating command signatures.