original_docstring:  Cleanup AthenaMP sud directories prior to log file creation. ATLAS specific 
docstring: Cleanup AthenaMP sud directories prior to log file creation. ATLAS specific
docstring_tokens: Cleanup AthenaMP sud directories prior to log file creation . ATLAS specific
code: def cleanupAthenaMP(workdir, outputfiles=[]):
      """ Cleanup AthenaMP sud directories prior to log file creation. ATLAS specific """
  
      for ampdir in glob('%s/athenaMP-workers-*' % (workdir)):
          for (p, d, f) in os.walk(ampdir):
              for filename in f:
                  if 'core' in filename or 'tmp.' in filename:
                      path = os.path.join(p, filename)
                      path = os.path.abspath(path)
                      remove(path)
                  for outfile in outputfiles:
                      if outfile in filename:
                          path = os.path.join(p, filename)
                          path = os.path.abspath(path)
                          remove(path)
  
      return 0
code_tokens: def cleanupAthenaMP ( workdir , outputfiles = [ ] ) : for ampdir in glob ( '%s/athenaMP-workers-*' % ( workdir ) ) : for ( p , d , f ) in os . walk ( ampdir ) : for filename in f : if 'core' in filename or 'tmp.' in filename : path = os . path . join ( p , filename ) path = os . path . abspath ( path ) remove ( path ) for outfile in outputfiles : if outfile in filename : path = os . path . join ( p , filename ) path = os . path . abspath ( path ) remove ( path ) return 0
short_docstring: Cleanup AthenaMP sud directories prior to log file creation.
short_docstring_tokens: Cleanup AthenaMP sud directories prior to log file creation .
comment: """ Cleanup AthenaMP sud directories prior to log file creation. ATLAS specific """