aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-01-23 21:31:22 -0500
committerRalph Amissah <ralph@amissah.com>2012-01-23 21:39:44 -0500
commit45a3eb9180ac22b9d0bbb54a3542878317e48f19 (patch)
tree7463f2e9c5ff8472491394bb767495b3c73f858d /lib
parentv3 v3dv: texpdf, tampering with "safe" special character transformations, a fix (diff)
v3dv: sysenv, use "which" instead of "whereis" to locate programs, test
* [suggested by, Timothy Hume, used to get sisu texpdf to work on MacOS]
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3dv/sysenv.rb2
1 files changed, 1 insertions, 1 deletions
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