ae_movie_file_hash.py 371 B

123456789101112131415161718
  1. from tools import tools
  2. from tools import image_trimmer
  3. class MyTools(tools.Tools):
  4. def _initialize(self):
  5. self.add_argument_file('--in_path', 'in_path')
  6. pass
  7. def _run(self, args):
  8. sha1hex = self.get_file_sha1(args.in_path)
  9. print("hash = {0}\n".format(sha1hex))
  10. return True
  11. pass
  12. pass
  13. tools.run(MyTools)