def define_categories(force=False):
 global CFG, categories
 try:
  for cat in CFG['categories']:
   ConfigCat(cat, CFG['categories'][cat])
 except KeyError:
  pass

def define_categories ( force = False ) : global CFG , categories try : for cat in CFG [ 'categories' ] : ConfigCat ( cat , CFG [ 'categories' ] [ cat ] ) except KeyError : pass
define categories listed in the setup file return a list of configcat instances .