123456789101112131415161718192021222324252627 |
- #!/usr/bin/python
- class fastbuild():
- import sys, os, json
- def __init__(self, filename):
- if filename == None:
- self.filename = "Build.json"
- else:
- self.filename = filename
- self.filehandle = open(self.filename, "r")
- self.rules = json.load(self.filehandle)
- def looprules(self):
- ...
- def applyrule(self, rule):
- ...
-
- # rulesfile = open("Build.json", "r")
- # rules = json.load(filehandle)
- if __name__ == __main__:
- import argparse
|