Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix issue #49

  • Loading branch information...
commit a3adbffa04c63935d63b285719dae62c2368493e 1 parent 8f452dc
@markus1189 markus1189 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/graphviz/utils.rb
View
4 lib/graphviz/utils.rb
@@ -26,8 +26,8 @@ def find_executable(bin, custom_paths) #:nodoc:
return file_path if File.executable?(file_path) and File.file?(file_path)
if RbConfig::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
+ found_ext = (ENV['PATHEXT'] || '.exe;.bat;.com').split(";").find {|ext| File.executable?(file_path + ext) }
+ return file_path + found_ext if found_ext
end
end
return nil
Please sign in to comment.
Something went wrong with that request. Please try again.