Rename write_metadata to specify txt

This commit is contained in:
Daniel Martí 2015-10-03 23:13:18 -07:00
parent 885a3a73f1
commit 082e275aa1
2 changed files with 4 additions and 4 deletions

View file

@ -61,14 +61,14 @@ def main():
# read in metadata.py
with open(metadatapath, 'r') as f:
cur_content = f.read()
metadata.write_metadata(s, app)
metadata.write_txt_metadata(s, app)
content = s.getvalue()
s.close()
if content != cur_content:
print(metadatapath)
else:
with open(metadatapath, 'w') as f:
metadata.write_metadata(f, app)
metadata.write_txt_metadata(f, app)
logging.debug("Finished.")