lib/constants.rb in rbtils-0.0.1 vs lib/constants.rb in rbtils-0.0.2
- old
+ new
@@ -1,7 +1,7 @@
module Granify
PACKAGE_NAME = "rbtils"
- INSTALLED_DIR = File.dirname($0)
+ INSTALLED_DIR = Gem::Specification.find_by_name(Granify::PACKAGE_NAME).gem_dir
LOG_DIR = INSTALLED_DIR + "/logs"
DEFAULT_LOG = Log.new # no args means default log
HELPER_DIR = INSTALLED_DIR + "/lib/helpers/"
CONTROLLER_DIR = INSTALLED_DIR + "/lib/controllers/"
MODEL_DIR = INSTALLED_DIR + "/lib/models/"
\ No newline at end of file