parameters: (file, path=None)
return_statement: return list(filter(os.path.exists,
          map(lambda dir, file=file: os.path.join(dir, file), path)))
docstring: Attempts to find an executable in the path
docstring_summary: Attempts to find an executable in the path
docstring_tokens: Attempts to find an executable in the path
function: def find_in_path(file, path=None):
      '''
      Attempts to find an executable in the path
      '''
      if platform.system() == 'Windows':
          file += '.exe'
      if path is None:
          path = os.environ.get('PATH', '')
      if type(path) is type(''):
          path = path.split(os.pathsep)
      return list(filter(os.path.exists,
          map(lambda dir, file=file: os.path.join(dir, file), path)))
function_tokens: def find_in_path ( file , path = None ) : if platform . system ( ) == 'Windows' : file += '.exe' if path is None : path = os . environ . get ( 'PATH' , '' ) if type ( path ) is type ( '' ) : path = path . split ( os . pathsep ) return list ( filter ( os . path . exists , map ( lambda dir , file = file : os . path . join ( dir , file ) , path ) ) )