Skip to content

Instantly share code, notes, and snippets.

@foolip
Last active February 1, 2019 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foolip/3be27fa5b8c57ec1121eff4c32fdefb3 to your computer and use it in GitHub Desktop.
Save foolip/3be27fa5b8c57ec1121eff4c32fdefb3 to your computer and use it in GitHub Desktop.
import json
import sys
for filename in sys.argv[1:]:
with open(filename, "r") as f:
report = json.load(f)
report["run_info"]["product"] = "edge"
report["run_info"]["comment"] = "original report modified to set product to edge"
with open(filename, "w") as f:
json.dump(report, f, sort_keys=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment