annotate python/apps/runbuild.py @ 63:32078200cdd6

Several move action
author windel
date Sun, 07 Oct 2012 17:04:10 +0200
parents python/ide/runbuild.py@fd7d5069734e
children
rev   line source
15
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
1 import sys
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
2
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
3 # Compiler imports:
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
4 from compiler.compiler import Compiler
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
5 from project import Project
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
6
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
7 if __name__ == '__main__':
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
8 if len(sys.argv) < 2:
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
9 print('Use {0} projectfile'.format(sys.argv[0]))
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
10 sys.exit(-1)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
11 filename = sys.argv[1]
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
12 project = Project()
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
13 project.load(filename)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
14 pc = Compiler()
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
15 pc.compileProject(project)
de004f808e56 Fixup in multidocument area stuff
windel
parents:
diff changeset
16