def make_workbook_map(): def _names(): yield "workbook" for c in itertools.count(1): yield "workbook_%d" % c return dict(list(zip(_names(), xl.workbooks())))
def make_workbook_map(): def _names(): yield "workbook" for c in itertools.count(1): yield "workbook_%d" % c return dict(zip(_names(), xl.workbooks()))
def ensure_open_workbook(): if not xl.workbooks(): xl.Workbook() assert xl.workbooks()