def _extract_from_egg(toc):
 new_toc = []
 for item in toc:
  (modname, pth, typ) = item
  if (not os.path.isfile(pth)):
   pth = check_extract_from_egg(pth)[0][0]
  new_toc.append((modname, pth, typ))
 return new_toc

def _extract_from_egg ( toc ) : new_toc = [ ] for item in toc : ( modname , pth , typ ) = item if ( not os . path . isfile ( pth ) ) : pth = check_extract_from_egg ( pth ) [ 0 ] [ 0 ] new_toc . append ( ( modname , pth , typ ) ) return new_toc
ensure all binary modules in zipped eggs get extracted and included with the frozen executable .