def get_drives(): """List all the drives on this system.""" drives = win32api.GetLogicalDriveStrings() return [x.rstrip("\\") for x in drives.split('\000') if x]