def check():
"""Check composition."""
env = _get_vars("$HOME/.config/epiphyte/env")
if os.path.exists(FILE_NAME):
shutil.copyfile(FILE_NAME, PREV_FILE)
compose(env)
if os.path.exists(FILE_NAME):
print(get_file_hash(FILE_NAME))
output = None
with open(FILE_NAME, 'r') as f:
j = json.loads(f.read())
output = json.dumps(j,
sort_keys=True,
indent=4,
separators=(',', ': '))
with open(FILE_NAME, 'w') as f:
f.write(output)
评论列表
文章目录