Advertisement
Guest User

Untitled

a guest
Apr 6th, 2017
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. original_f = r"C:\working\exiftool\example\original.txt"
  2. exif_f = r"C:\working\exiftool\example\hand_fixed.txt"
  3. hand_f = r"C:\working\exiftool\example\exif_fixed.txt"
  4.  
  5. def get_md(f):
  6.     with open(f, "rb") as data:
  7.         data = data.read()
  8.         lines = data.split("\n")
  9.     return lines
  10.  
  11. orig = get_md(original_f)
  12. exif = get_md(exif_f)
  13. hand = get_md(hand_f)
  14.  
  15.  
  16. for i, line in enumerate(orig):
  17.     if line != exif[i] or line != hand[i]:
  18.         print orig[i]
  19.         print exif[i]
  20.         print hand[i]
  21.         print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement