build.py 504 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. class fastbuild():
  3. import sys, os, json
  4. def __init__(self, filename):
  5. if filename == None:
  6. self.filename = "Build.json"
  7. else:
  8. self.filename = filename
  9. self.filehandle = open(self.filename, "r")
  10. self.rules = json.load(self.filehandle)
  11. def looprules(self):
  12. ...
  13. def applyrule(self, rule):
  14. ...
  15. # rulesfile = open("Build.json", "r")
  16. # rules = json.load(filehandle)
  17. if __name__ == __main__:
  18. import argparse