parameters: (cls, name, lookup=[])
docstring: Search name in all directories specified in lookup.
          First without, then with common extensions. Return first hit.
docstring_summary: Search name in all directories specified in lookup.
          First without, then with common extensions. Return first hit.
docstring_tokens: Search name in all directories specified in lookup . First without then with common extensions . Return first hit .
function: def search(cls, name, lookup=[]):
          """ Search name in all directories specified in lookup.
          First without, then with common extensions. Return first hit. """
          if os.path.isfile(name): return name
          for spath in lookup:
              fname = os.path.join(spath, name)
              if os.path.isfile(fname):
                  return fname
              for ext in cls.extentions:
                  if os.path.isfile('%s.%s' % (fname, ext)):
                      return '%s.%s' % (fname, ext)
function_tokens: def search ( cls , name , lookup = [ ] ) : if os . path . isfile ( name ) : return name for spath in lookup : fname = os . path . join ( spath , name ) if os . path . isfile ( fname ) : return fname for ext in cls . extentions : if os . path . isfile ( '%s.%s' % ( fname , ext ) ) : return '%s.%s' % ( fname , ext )