From 6c4dcef6dc704156115b8d3ad19c3020663c7ffc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 9 Feb 2015 14:19:23 -0800 Subject: [PATCH] glapi: gl_enums.py: use main() function for if __name__ == "__main__" Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_enums.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index 927a68b3e05..955f27d0818 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -211,9 +211,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): args = _parser() api_list = [gl_XML.parse_GL_API(args.input_file)] printer = PrintGlEnums() printer.Print(api_list) + + +if __name__ == '__main__': + main() -- 2.30.2