view python/build.py @ 184:fe2b72381a83

Added testset for pyy
author Windel Bouwman
date Fri, 24 May 2013 16:13:23 +0200
parents af0d7913677a
children
line wrap: on
line source

#!/usr/bin/python

import sys, os, argparse

# 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)