Skip to content

Commit

Permalink
Buf correction
Browse files Browse the repository at this point in the history
  • Loading branch information
glejeune committed Oct 7, 2010
1 parent fd2f66f commit 6f96301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphviz/utils.rb
Expand Up @@ -23,7 +23,7 @@ def find_executable(bin, paths) #:nodoc:
file = (path.nil?)?bin:File.join(path,bin)
if File.executable?(file) and not File.directory?(file) then
return file
elsif Config::CONFIG[host_os] =~ /mswin|mingw/ # WAS: elsif RUBY_PLATFORM =~ /mswin|mingw/
elsif Config::CONFIG['host_os'] =~ /mswin|mingw/ # WAS: elsif RUBY_PLATFORM =~ /mswin|mingw/
found_ext = (ENV['PATHEXT'] || '.exe;.bat;.com').split(";").find {|ext| File.executable?(file + ext) }
return file + found_ext if found_ext
end
Expand Down

0 comments on commit 6f96301

Please sign in to comment.