summaryrefslogtreecommitdiff
path: root/volk/gen/volk_tmpl_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'volk/gen/volk_tmpl_utils.py')
-rw-r--r--volk/gen/volk_tmpl_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/volk/gen/volk_tmpl_utils.py b/volk/gen/volk_tmpl_utils.py
index 92b7fb1a4..9d7a0d0e5 100644
--- a/volk/gen/volk_tmpl_utils.py
+++ b/volk/gen/volk_tmpl_utils.py
@@ -63,7 +63,8 @@ def __parse_tmpl(_tmpl, **kwargs):
if __name__ == '__main__':
input_file = sys.argv[1]
output_file = sys.argv[2]
- which = sys.argv[3]
+ try: which = sys.argv[3]
+ except: which = ''
output = __parse_tmpl(open(input_file).read(), which=which)
if output_file: open(output_file, 'w').write(output)
else: print output