Mercurial > lcfOS
view python/apps/build.py @ 89:4b1892054744
Cleanup
author | windel |
---|---|
date | Tue, 27 Nov 2012 18:11:39 +0100 |
parents | 654c5ac4f2c5 |
children |
line wrap: on
line source
import sys, os, argparse sys.path.insert(0, os.path.join('..','libs')) # Compiler imports: from compiler import Compiler from project import Project if __name__ == '__main__': parser = argparse.ArgumentParser(description='Build tool to build projects') parser.add_argument('project', type=str, help='the project to be build') args = parser.parse_args() try: project = Project(args.project) except IOError: print('Failed to load {0}'.format(args.project)) sys.exit(3) pc = Compiler() pc.compileProject(project)