aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/gen_vrt.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/gen_vrt.py')
-rwxr-xr-xhost/lib/transport/gen_vrt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py
index bc6635d78..0f961efc2 100755
--- a/host/lib/transport/gen_vrt.py
+++ b/host/lib/transport/gen_vrt.py
@@ -200,9 +200,10 @@ void vrt::unpack(
}
"""
+import sys
from Cheetah import Template
def parse_str(_tmpl_text, **kwargs): return str(Template.Template(_tmpl_text, kwargs))
if __name__ == '__main__':
from Cheetah import Template
- print parse_str(TMPL_TEXT, file=__file__)
+ open(sys.argv[1], 'w').write(parse_str(TMPL_TEXT, file=__file__))