+ parser = argparse.ArgumentParser()
+ parser.add_argument('game_file', nargs='?', default=None,
+ metavar='GAME FILE', help='the game file to load and start')
+ parser.add_argument('graphics_file', nargs='?', default=None,
+ metavar='GRAPHICS FILE', help='a Blorb resource file to include')
+ args = parser.parse_args()
+
+ # Create configuration dir ~/.chimara
+ try:
+ os.mkdir(os.path.expanduser('~/.chimara'))
+ except OSError:
+ # already exists
+ assert os.path.isdir(os.path.expanduser('~/.chimara'))
+
+ player = Player(graphics_file=args.graphics_file)