Mercurial > lcfOS
view python/apps/build.py @ 68:654c5ac4f2c5
Refactor of menus
author | windel |
---|---|
date | Sat, 13 Oct 2012 16:13:05 +0200 |
parents | 361f7d13adea |
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)