Commit acb1c04e authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

update

parent 1f7fb95e
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import json
#-------------------------------------------------------------------------------
def main(argv):
if len(sys.argv) != 2:
print("Usage: " + argv[0] + "<JSON File> <Field>")
else:
jsonFile=open(argv[1]).read()
cfg = json.loads(jsonFile)
return cfg[argv[2]]
#-------------------------------------------------------------------------------
if __name__ == "__main__":
main(sys.argv)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment