summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-04-06 14:07:08 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-06 14:08:16 -0700
commit8cc64bd23fb248b6498e53ed4199c88324021b2c (patch)
treeedbe0b9395d7bcc40aa346936de088a9560bdc3f /bin
parent1c0505c638ee7fbbfc9bb431cb66dbef49183f8e (diff)
downloadohai-8cc64bd23fb248b6498e53ed4199c88324021b2c.tar.gz
[OHAI-136] import popen4 from chef into ohai
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ohai2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ohai b/bin/ohai
index cb900e39..d03d0a90 100755
--- a/bin/ohai
+++ b/bin/ohai
@@ -29,7 +29,7 @@ end
begin
# if we're in a source code checkout, we want to run the code from that.
# have to do this *after* rubygems is loaded.
- $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
+ $:.unshift File.expand_path('../../lib', __FILE__)
require 'ohai/application'
rescue LoadError
if missing_rubygems