def generate_all_classes(modules_list=[], launcher=[], redirect_x=False, mipav_hacks=False):
 all_code = {}
 for module in modules_list:
  print((u'=' * 80))
  print(u'Generating Definition for module {0}'.format(module))
  print((u'^' * 80))
  (package, code, module) = generate_class(module, launcher, redirect_x=redirect_x, mipav_hacks=mipav_hacks)
  cur_package = all_code
  module_name = package.strip().split(u' ')[0].split(u'.')[(-1)]
  for package in package.strip().split(u' ')[0].split(u'.')[:(-1)]:
   if (package not in cur_package):
    cur_package[package] = {}
   cur_package = cur_package[package]
  if (module_name not in cur_package):
   cur_package[module_name] = {}
  cur_package[module_name][module] = code
 if os.path.exists(u'__init__.py'):
  os.unlink(u'__init__.py')
 crawl_code_struct(all_code, os.getcwd())

def generate_all_classes ( modules_list = [ ] , launcher = [ ] , redirect_x = False , mipav_hacks = False ) : all_code = { } for module in modules_list : print ( ( u'=' * 80 ) ) print ( u'Generating Definition for module {0}' . format ( module ) ) print ( ( u'^' * 80 ) ) ( package , code , module ) = generate_class ( module , launcher , redirect_x = redirect_x , mipav_hacks = mipav_hacks ) cur_package = all_code module_name = package . strip ( ) . split ( u' ' ) [ 0 ] . split ( u'.' ) [ ( - 1 ) ] for package in package . strip ( ) . split ( u' ' ) [ 0 ] . split ( u'.' ) [ : ( - 1 ) ] : if ( package not in cur_package ) : cur_package [ package ] = { } cur_package = cur_package [ package ] if ( module_name not in cur_package ) : cur_package [ module_name ] = { } cur_package [ module_name ] [ module ] = code if os . path . exists ( u'__init__.py' ) : os . unlink ( u'__init__.py' ) crawl_code_struct ( all_code , os . getcwd ( ) )
modules_list contains all the sem compliant tools that should have wrappers created for them .