Skip to content

Commit e18e3f3

Browse files
committed
allow for paths with spaces in them for the executable yikes
1 parent d61d6fd commit e18e3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gnuplot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def Gnuplot.which_helper bin
5555
#
5656
# Return the path to the gnuplot executable or nil if one cannot be found.
5757
def Gnuplot.gnuplot( persist = true )
58-
cmd = which( ENV['RB_GNUPLOT'] || 'gnuplot' )
58+
cmd = '"' + which( ENV['RB_GNUPLOT'] || 'gnuplot' ) + '"'
5959
raise 'gnuplot executable not found' unless cmd
6060
cmd += " -persist" if persist
6161
cmd

0 commit comments

Comments
 (0)