Mercurial > lcfOS
annotate user/makeuser.py @ 312:2c9768114877
Added cool logging formatter
author | Windel Bouwman |
---|---|
date | Mon, 16 Dec 2013 17:58:15 +0100 |
parents | ff665880a6b0 |
children | 04cf4d26a3bc |
rev | line source |
---|---|
311 | 1 #!/usr/bin/env python |
2 | |
3 import sys | |
4 import os | |
5 import zcc | |
6 | |
7 def make_user(): | |
8 arglist = ['lib.c3', 'ipc.c3', 'hello.c3'] | |
9 arglist += ['--target', 'arm'] | |
10 arglist += ['--dumpasm', '--dumpir'] | |
11 arglist += ['--log', 'debug'] | |
12 | |
13 args = zcc.parser.parse_args(arglist) | |
14 zcc.main(args) | |
15 | |
16 if __name__ == '__main__': | |
17 sys.path.insert(0, os.path.join('..', 'python')) | |
18 make_user() |