bin: Resolve real path (even if linked).
This commit is contained in:
parent
0a23465b98
commit
3b0e5a2ce3
1 changed files with 2 additions and 1 deletions
3
bin/kook
3
bin/kook
|
@ -4,6 +4,7 @@
|
||||||
#require 'bundler/setup'
|
#require 'bundler/setup'
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
require 'singleton'
|
require 'singleton'
|
||||||
|
require 'pathname'
|
||||||
|
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ require 'colorize'
|
||||||
require 'pp'
|
require 'pp'
|
||||||
|
|
||||||
DATA_DIR = File.expand_path(
|
DATA_DIR = File.expand_path(
|
||||||
File.join(File.dirname(__FILE__),'..')
|
File.join(File.dirname(Pathname.new(__FILE__).realpath),'..')
|
||||||
)
|
)
|
||||||
|
|
||||||
VERSION = "0.3"
|
VERSION = "0.3"
|
||||||
|
|
Loading…
Reference in a new issue