parameters: ()
return_statement: return True
docstring: list the main binaries of the app bundle and fix them
docstring_summary: list the main binaries of the app bundle and fix them
docstring_tokens: list the main binaries of the app bundle and fix them
function: def fix_main_binaries():
      """
          list the main binaries of the app bundle and fix them
      """
      # deduce bundle path
      bundlepath = os.path.sep.join(GlobalConfig.exepath.split(os.path.sep)[0:-3])
  
      # fix main binary
      GlobalConfig.logger.info('fixing executable \'{0}\''.format(GlobalConfig.exepath))
      if fix_binary(GlobalConfig.exepath):
          GlobalConfig.logger.info('fixing plugins')
          for root, dummy, files in os.walk(bundlepath):
              for name in [f for f in files if os.path.splitext(f)[1] == '.dylib']:
                  GlobalConfig.logger.info('fixing plugin {0}'.format(name))
                  if not fix_binary(os.path.join(root, name)):
                      return False
      return True
function_tokens: def fix_main_binaries ( ) : # deduce bundle path bundlepath = os . path . sep . join ( GlobalConfig . exepath . split ( os . path . sep ) [ 0 : - 3 ] ) # fix main binary GlobalConfig . logger . info ( 'fixing executable \'{0}\'' . format ( GlobalConfig . exepath ) ) if fix_binary ( GlobalConfig . exepath ) : GlobalConfig . logger . info ( 'fixing plugins' ) for root , dummy , files in os . walk ( bundlepath ) : for name in [ f for f in files if os . path . splitext ( f ) [ 1 ] == '.dylib' ] : GlobalConfig . logger . info ( 'fixing plugin {0}' . format ( name ) ) if not fix_binary ( os . path . join ( root , name ) ) : return False return True