assert_exists.py 220 B

12345678910111213141516
  1. '''
  2. Created on 23 nov. 2016
  3. @author: olivier.massot
  4. '''
  5. import os
  6. import sys
  7. _, file_path = sys.argv
  8. if not os.path.exists(file_path):
  9. print("{} does not exist".format(file_path))
  10. sys.exit(1)
  11. sys.exit(0)