class Eth::Solidity

def get_compiler_path(name = "solc")

Tries to find a system executable path for the given compiler binary name.
def get_compiler_path(name = "solc")
  extensions = [""]
  extensions = ENV["PATHEXT"].split(";") unless ENV["PATHEXT"].nil?
  ENV["PATH"].split(File::PATH_SEPARATOR).each do |path|
    extensions.each do |ext|
      executable = File.join path, "#{name}#{ext}"
      return executable if File.executable? executable and !File.directory? executable
    end
  end
  return nil
end