You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is due to a limitation where when run via backquote or execute strings a command should have its complete name with extension. so running dot -Tpng will fail on windows. Instead dot.exe -Tpng will work.
Here is a patched find_executable() method that should work on *NIX and Windows (grab it here also: http://gist.github.com/252527 )
def find_executable(bin = @prog, *paths) #:nodoc:
paths = ENV['PATH'].split(File::PATH_SEPARATOR) if paths.empty?
paths.each do |path|
file = File.join(path,bin)
if File.executable?(file) then
return file
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
end
return nil
end
The text was updated successfully, but these errors were encountered:
This is due to a limitation where when run via backquote or execute strings a command should have its complete name with extension. so running
dot -Tpng
will fail on windows. Insteaddot.exe -Tpng
will work.Here is a patched find_executable() method that should work on *NIX and Windows (grab it here also: http://gist.github.com/252527 )
The text was updated successfully, but these errors were encountered: