annotate python/ide/runbuild.py @ 62:fd7d5069734e

Rename application to python
author windel
date Sun, 07 Oct 2012 16:56:50 +0200
parents applications/ide/runbuild.py@600f48b74799
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