diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/apps/build.py	Sun Oct 07 17:13:47 2012 +0200
@@ -0,0 +1,18 @@
+import sys, os
+
+sys.path.insert(0, os.path.join('..','libs'))
+print(sys.path)
+# Compiler imports:
+from compiler.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)
+