# Path: xnb_parse/show_ao.py
# def main():
#     if len(sys.argv) == 3:
#         # try and get config with 4x AA enabled, failing back to no AA
#         platform = pyglet.window.get_platform()
#         display = platform.get_default_display()
#         screen = display.get_default_screen()
#         template = pyglet.gl.Config(sample_buffers=1, samples=4)
#         try:
#             config = screen.get_best_config(template)
#         except pyglet.window.NoSuchConfigException:
#             template = pyglet.gl.Config()
#             config = screen.get_best_config(template)
#         # try and use FezContentManager if it works, failing back to directory reader
#         try:
#             content_manager = FezContentManager(sys.argv[1])
#         except ReaderError:
#             content_manager = ContentManager(sys.argv[1])
#         AOWindow(content_manager=content_manager, asset_name=sys.argv[2], config=config)
#         pyglet.app.run()
#     else:
#         print('show_ao.py Content|out objectao', file=sys.stderr)


from xnb_parse.show_ao import main
#!/usr/bin/python
"""
Show ArtObject from XNB
"""

from __future__ import print_function



if __name__ == '__main__':

# Path: xnb_parse/show_ao.py
# def main():
#     if len(sys.argv) == 3:
#         # try and get config with 4x AA enabled, failing back to no AA
#         platform = pyglet.window.get_platform()
#         display = platform.get_default_display()
#         screen = display.get_default_screen()
#         template = pyglet.gl.Config(sample_buffers=1, samples=4)
#         try:
#             config = screen.get_best_config(template)
#         except pyglet.window.NoSuchConfigException:
#             template = pyglet.gl.Config()
#             config = screen.get_best_config(template)
#         # try and use FezContentManager if it works, failing back to directory reader
#         try:
#             content_manager = FezContentManager(sys.argv[1])
#         except ReaderError:
#             content_manager = ContentManager(sys.argv[1])
#         AOWindow(content_manager=content_manager, asset_name=sys.argv[2], config=config)
#         pyglet.app.run()
#     else:
#         print('show_ao.py Content|out objectao', file=sys.stderr)


# Path: show_ao.py
from xnb_parse.show_ao import main

#!/usr/bin/python
"""
Show ArtObject from XNB
"""

from __future__ import print_function



if __name__ == '__main__':

    main()