view python/apps/build.py @ 66:bcd55a341512

Added py3k check
author windel
date Sun, 07 Oct 2012 17:27:09 +0200
parents 361f7d13adea
children 654c5ac4f2c5
line wrap: on
line source

import sys, os
sys.path.insert(0, os.path.join('..','libs'))

# Compiler imports:
from compiler import Compiler
from project import Project

if __name__ == '__main__':
   if len(sys.argv) < 2:
      print('Use {0} projectfile'.format(sys.argv[0]))
      sys.exit(-1)
   filename = sys.argv[1]
   project = Project()
   project.load(filename)
   pc = Compiler()
   pc.compileProject(project)