Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def DriveLocation():
  2. for USBPATH in ascii_uppercase:
  3. if os.path.exists('%s:\\File Name' % USBPATH):
  4. USBPATH='%s:\\' % USBPATH
  5. print('USB Drive Letter is', USBPATH)
  6. return USBPATH + ""
  7. return ""
  8. drive = DriveLocation()
Add Comment
Please, Sign In to add comment