parameters: (self, binspec, sel_binaries = None, bingroup = "BINARIES")
return_statement: return False
docstring: Load the list of binaries that need to be run from a python file
          with a global object containing the names of Binary classes.
docstring_summary: Load the list of binaries that need to be run from a python file
          with a global object containing the names of Binary classes.
docstring_tokens: Load the list of binaries that need to be run from a python file with a global object containing the names of Binary classes .
function: def load_binaries(self, binspec, sel_binaries = None, bingroup = "BINARIES"):
          """Load the list of binaries that need to be run from a python file
          with a global object containing the names of Binary classes.
          """
          d = os.path.dirname(binspec)
          binaries = load_binary_specs(binspec, bingroup)
          if binaries:
              for b in binaries:
                  if b.get_id() in self.binaries:
                      log.error("Duplicate binary id %s in %s" % (b.get_id(), binspec))
                      return False
  
                  if sel_binaries and b.get_id() not in sel_binaries:
                      log.debug("Ignoring binary id %s in %s, not in sel_binaries" % (b.get_id(), binspec))
                      continue
  
                  self.binaries[b.get_id()] = b
  
                  if d == '':
                      log.warning('binspec path from "%s" is empty' % (binspec,))
  
                  b.props._cwd = d
  
              return True
          
          if not binaries or len(binaries) == 0:
              log.error("%s is empty in %s" % (bingroup, binspec))
  
          return False
function_tokens: def load_binaries ( self , binspec , sel_binaries = None , bingroup = "BINARIES" ) : d = os . path . dirname ( binspec ) binaries = load_binary_specs ( binspec , bingroup ) if binaries : for b in binaries : if b . get_id ( ) in self . binaries : log . error ( "Duplicate binary id %s in %s" % ( b . get_id ( ) , binspec ) ) return False if sel_binaries and b . get_id ( ) not in sel_binaries : log . debug ( "Ignoring binary id %s in %s, not in sel_binaries" % ( b . get_id ( ) , binspec ) ) continue self . binaries [ b . get_id ( ) ] = b if d == '' : log . warning ( 'binspec path from "%s" is empty' % ( binspec , ) ) b . props . _cwd = d return True if not binaries or len ( binaries ) == 0 : log . error ( "%s is empty in %s" % ( bingroup , binspec ) ) return False