Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. if os.path.isfile(A):
  2.     path = A
  3. else:
  4.     path = input("File not found. Please enter correct file path: ")
  5.  
  6. do_something(path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement