101
|
1 #!/usr/bin/python
|
|
2
|
68
|
3 import sys, os, argparse
|
65
|
4
|
15
|
5 # Compiler imports:
|
65
|
6 from compiler import Compiler
|
15
|
7 from project import Project
|
|
8
|
|
9 if __name__ == '__main__':
|
68
|
10 parser = argparse.ArgumentParser(description='Build tool to build projects')
|
|
11 parser.add_argument('project', type=str, help='the project to be build')
|
|
12 args = parser.parse_args()
|
|
13
|
|
14 try:
|
|
15 project = Project(args.project)
|
|
16 except IOError:
|
|
17 print('Failed to load {0}'.format(args.project))
|
|
18 sys.exit(3)
|
15
|
19 pc = Compiler()
|
|
20 pc.compileProject(project)
|
|
21
|