def load_parser_result_store(package_dirpath, open_for_write=False):
 open_flag = ((open_for_write and 'c') or 'r')
 sto_filepath = path.join(package_dirpath, PARSER_RESULT_STORE)
 return shelve_open(sto_filepath, flag=open_flag)

def load_parser_result_store ( package_dirpath , open_for_write = False ) : open_flag = ( ( open_for_write and 'c' ) or 'r' ) sto_filepath = path . join ( package_dirpath , PARSER_RESULT_STORE ) return shelve_open ( sto_filepath , flag = open_flag )
load parser result store from specified scenario package .