From 67d3ec0bb8f6a8c918b371ed03ef21814899f07d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 20 May 2015 11:49:40 -0700 Subject: [PATCH] glapy: gl_genexec.py: use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_genexec.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py index dbaafa71fd7..0d58a8a2914 100644 --- a/src/mapi/glapi/gen/gl_genexec.py +++ b/src/mapi/glapi/gen/gl_genexec.py @@ -218,8 +218,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() printer = PrintCode() api = gl_XML.parse_GL_API(args.filename) printer.Print(api) + + +if __name__ == '__main__': + main() -- 2.30.2