Mercurial > lcfOS
comparison python/apps/build.py @ 64:4a27c28c7d0f
File movage
author | windel |
---|---|
date | Sun, 07 Oct 2012 17:13:47 +0200 |
parents | python/apps/runbuild.py@32078200cdd6 |
children | 361f7d13adea |
comparison
equal
deleted
inserted
replaced
63:32078200cdd6 | 64:4a27c28c7d0f |
---|---|
1 import sys, os | |
2 | |
3 sys.path.insert(0, os.path.join('..','libs')) | |
4 print(sys.path) | |
5 # Compiler imports: | |
6 from compiler.compiler import Compiler | |
7 from project import Project | |
8 | |
9 if __name__ == '__main__': | |
10 if len(sys.argv) < 2: | |
11 print('Use {0} projectfile'.format(sys.argv[0])) | |
12 sys.exit(-1) | |
13 filename = sys.argv[1] | |
14 project = Project() | |
15 project.load(filename) | |
16 pc = Compiler() | |
17 pc.compileProject(project) | |
18 |