From 45a3eb9180ac22b9d0bbb54a3542878317e48f19 Mon Sep 17 00:00:00 2001
From: Ralph Amissah <ralph@amissah.com>
Date: Mon, 23 Jan 2012 21:31:22 -0500
Subject: v3dv: sysenv, use "which" instead of "whereis" to locate programs,
 test

* [suggested by, Timothy Hume, used to get sisu texpdf to work on MacOS]
---
 lib/sisu/v3dv/sysenv.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/sisu/v3dv/sysenv.rb b/lib/sisu/v3dv/sysenv.rb
index a5658ee1..4e0e12a7 100644
--- a/lib/sisu/v3dv/sysenv.rb
+++ b/lib/sisu/v3dv/sysenv.rb
@@ -612,7 +612,7 @@ module SiSU_Env
       @sys=InfoSystem.instance
     end
     def program_found?(program)
-      found=`whereis #{program}`
+      found=`which #{program}` #`whereis #{program}`
       (found =~/bin\/#{program}\b/) ? true : false
     end
     def locale                                                                 #locales utf8 or other
-- 
cgit v1.2.3