annotate 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
rev   line source
64
4a27c28c7d0f File movage
windel
parents: 63
diff changeset
1 import sys, os
15
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
2
64
4a27c28c7d0f File movage
windel
parents: 63
diff changeset
3 sys.path.insert(0, os.path.join('..','libs'))
4a27c28c7d0f File movage
windel
parents: 63
diff changeset
4 print(sys.path)
15
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
5 # Compiler imports:
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
6 from compiler.compiler import Compiler
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
7 from project import Project
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
8
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
9 if __name__ == '__main__':
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
10 if len(sys.argv) < 2:
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
11 print('Use {0} projectfile'.format(sys.argv[0]))
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
12 sys.exit(-1)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
13 filename = sys.argv[1]
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
14 project = Project()
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
15 project.load(filename)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
16 pc = Compiler()
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
17 pc.compileProject(project)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
18