From 3b0e5a2ce351316af7bb33212339e6a84b152da0 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 3 Jan 2014 10:39:14 +0100 Subject: [PATCH] bin: Resolve real path (even if linked). --- bin/kook | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/kook b/bin/kook index 4c1ca70..2579c2a 100755 --- a/bin/kook +++ b/bin/kook @@ -4,6 +4,7 @@ #require 'bundler/setup' require 'yaml' require 'singleton' +require 'pathname' require 'bundler/setup' @@ -12,7 +13,7 @@ require 'colorize' require 'pp' DATA_DIR = File.expand_path( - File.join(File.dirname(__FILE__),'..') + File.join(File.dirname(Pathname.new(__FILE__).realpath),'..') ) VERSION = "0.3"