def get_pool(arg = None, opts = None, abort = False):
<EOL>global pool<EOL>try:<EOL><INDENT>pool = Pool.list({ '<STR_LIT:name>': arg })[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>if abort:<EOL><INDENT>print("<STR_LIT>" % str(arg), file=sys.stderr)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>pool = None<EOL><DEDENT><DEDENT>return pool<EOL>
Returns pool to work with

        Returns a pynipap.Pool object representing the pool we are working with.