Skip to content

Commit

Permalink
Ruby makes my brain hurt
Browse files Browse the repository at this point in the history
 - look for ../lib relative to source dir
  • Loading branch information
dotysan committed Nov 4, 2016
1 parent 6c3cd57 commit 10e4ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/nicinfo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require 'rubygems'
begin
require 'nicinfo'
rescue LoadError
lib = File.expand_path("../lib",File.dirname(__FILE__))
lib = File.expand_path("../lib",File.dirname(File.realdirpath(__FILE__)))
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'nicinfo'
end
Expand Down

0 comments on commit 10e4ad1

Please sign in to comment.