Skip to content
This repository
Browse code

Fix issue #49

  • Loading branch information...
commit a3adbffa04c63935d63b285719dae62c2368493e 1 parent 8f452dc
Markus Hauck authored July 03, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/graphviz/utils.rb
4  lib/graphviz/utils.rb
@@ -26,8 +26,8 @@ def find_executable(bin, custom_paths) #:nodoc:
26 26
       return file_path if File.executable?(file_path) and File.file?(file_path)
27 27
 
28 28
       if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ # WAS: elsif RUBY_PLATFORM =~ /mswin|mingw/
29  
-        found_ext = (ENV['PATHEXT'] || '.exe;.bat;.com').split(";").find {|ext| File.executable?(file + ext) }
30  
-        return file + found_ext if found_ext
  29
+        found_ext = (ENV['PATHEXT'] || '.exe;.bat;.com').split(";").find {|ext| File.executable?(file_path + ext) }
  30
+        return file_path + found_ext if found_ext
31 31
       end
32 32
     end
33 33
     return nil

0 notes on commit a3adbff

Please sign in to comment.
Something went wrong with that request. Please try again.