code: def search_on_path(filenames):
      """Find file on system path."""
      # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52224
  
      from os.path import exists, abspath
      from os import pathsep, environ
  
      search_path = environ["PATH"]
  
      paths = search_path.split(pathsep)
      for path in paths:
          for filename in filenames:
              if exists(join(path, filename)):
                  return abspath(join(path, filename))
  
imports: from __future__ import absolute_import, print_function
  from os.path import dirname, join, normpath
label_desc: Use image node_id 1 for calling a global function with example usage: search_on_path(filenames) and returns: abspath