scripts/modules/module_block: Use Python 3 interpreter & add pseudo-main

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200512103238.7078-6-philmd@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2020-05-12 12:32:37 +02:00
parent e57a707a82
commit 5aa628045d
1 changed files with 15 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# Module information generator
#
@ -80,6 +80,7 @@ def print_bottom(fheader):
#endif
''')
if __name__ == '__main__':
# First argument: output file
# All other arguments: modules source files (.c)
output_file = sys.argv[1]