guicho271828 / eazy-gnuplot

Super Duper Doopa Booka Lispy Gnuplot library
http://guicho271828.github.io/eazy-gnuplot/
63 stars 8 forks source link

Warn the user at build time if gnuplot is not in PATH #34

Closed PuercoPop closed 8 years ago

PuercoPop commented 8 years ago

A minor usability suggestion, something like

(let* ((directories (mapcar #'uiop:directory-exists-p (split-sequence:split-sequence #\: (uiop:getenv "PATH"))))
       (directories (remove-if #'null directories)) ; Remove non-existent directories
       (possible-gnuplot-locations (mapcar #'(lambda (d) (uiop/pathname:merge-pathnames* eazy-gnuplot:*gnuplot-home* d))  directories)))
  (unless (some #'uiop/filesystem:file-exists-p possible-gnuplot-locations)
    (warn "Could not find GNUPLOT in $PATH")))