def main(): options = parse_options(sys.argv[1:]) world = World(options.world) player = world.get_player(options.player) if not player: sys.stderr.write('No data found for the player\n') sys.exit(1) print world.get_region_filename(player.get_chunk_pos())