def get_bootstrap_modules():
 mod_struct = __import__('struct')
 loader_mods = []
 loaderpath = os.path.join(HOMEPATH, 'PyInstaller', 'loader')
 for mod_name in ['_struct', 'zlib']:
  mod = __import__(mod_name)
  if hasattr(mod, '__file__'):
   loader_mods.append((mod_name, os.path.abspath(mod.__file__), 'EXTENSION'))
 loader_mods += [('struct', os.path.abspath(mod_struct.__file__), 'PYMODULE'), ('pyimod01_os_path', os.path.join(loaderpath, 'pyimod01_os_path.pyc'), 'PYMODULE'), ('pyimod02_archive', os.path.join(loaderpath, 'pyimod02_archive.pyc'), 'PYMODULE'), ('pyimod03_importers', os.path.join(loaderpath, 'pyimod03_importers.pyc'), 'PYMODULE'), ('pyiboot01_bootstrap', os.path.join(loaderpath, 'pyiboot01_bootstrap.py'), 'PYSOURCE')]
 toc = TOC(loader_mods)
 return toc

def get_bootstrap_modules ( ) : mod_struct = __import__ ( 'struct' ) loader_mods = [ ] loaderpath = os . path . join ( HOMEPATH , 'PyInstaller' , 'loader' ) for mod_name in [ '_struct' , 'zlib' ] : mod = __import__ ( mod_name ) if hasattr ( mod , '__file__' ) : loader_mods . append ( ( mod_name , os . path . abspath ( mod . __file__ ) , 'EXTENSION' ) ) loader_mods += [ ( 'struct' , os . path . abspath ( mod_struct . __file__ ) , 'PYMODULE' ) , ( 'pyimod01_os_path' , os . path . join ( loaderpath , 'pyimod01_os_path.pyc' ) , 'PYMODULE' ) , ( 'pyimod02_archive' , os . path . join ( loaderpath , 'pyimod02_archive.pyc' ) , 'PYMODULE' ) , ( 'pyimod03_importers' , os . path . join ( loaderpath , 'pyimod03_importers.pyc' ) , 'PYMODULE' ) , ( 'pyiboot01_bootstrap' , os . path . join ( loaderpath , 'pyiboot01_bootstrap.py' ) , 'PYSOURCE' ) ] toc = TOC ( loader_mods ) return toc
get toc with the bootstrapping modules and their dependencies .