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