# File lib/chef/provider/package/easy_install.rb, line 32 def install_check(name) check = false begin # first check to see if we can import it output = shell_out!("python -c \"import #{name}\"").stderr unless output.include? "ImportError" check = true end rescue # then check to see if its on the path output = shell_out!("python -c \"import sys; print sys.path\"").stdout if output.downcase.include? "#{name.downcase}" check = true end end check end