Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def DriveLocation():
- for USBPATH in ascii_uppercase:
- if os.path.exists('%s:\\File Name' % USBPATH):
- USBPATH='%s:\\' % USBPATH
- print('USB Drive Letter is', USBPATH)
- return USBPATH + ""
- return ""
- drive = DriveLocation()
Add Comment
Please, Sign In to add comment