diff options
author | Josh Blum | 2013-07-13 14:25:58 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-13 14:25:58 -0700 |
commit | 9f1d8e892035a2e26cb2d06407722c0a7773e997 (patch) | |
tree | 55e91c92ace5e6d0719b5c2f9be3668a2ef708b5 /tmpl/expand_template.py | |
parent | 15dc0eaa715f41c3ebc05ce7b455e129218148a9 (diff) | |
download | sandhi-9f1d8e892035a2e26cb2d06407722c0a7773e997.tar.gz sandhi-9f1d8e892035a2e26cb2d06407722c0a7773e997.tar.bz2 sandhi-9f1d8e892035a2e26cb2d06407722c0a7773e997.zip |
gras: minor tweaks to callable + gen script
Diffstat (limited to 'tmpl/expand_template.py')
-rw-r--r-- | tmpl/expand_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpl/expand_template.py b/tmpl/expand_template.py index 3941fb2..1056e15 100644 --- a/tmpl/expand_template.py +++ b/tmpl/expand_template.py @@ -22,7 +22,7 @@ if __name__ == '__main__': in_path = sys.argv[1] out_path = sys.argv[2] tmpl = open(in_path, 'r').read() - for key in ['define', 'include', 'if', 'endif', 'else', 'ifdef', 'ifndef']: + for key in ['define', 'include', 'if', 'endif', 'else', 'ifdef', 'ifndef', 'pragma']: tmpl = tmpl.replace('#%s'%key, '\\#%s'%key) code = str(Template(tmpl, dict( MAX_ARGS=MAX_ARGS, expand=expand, |