]> git.r.bdr.sh - rbdr/lyricli.rb/blobdiff - lib/lyricli/configuration.rb
removing unused variable options, fixes warning in last ruby 1.9.3 branch
[rbdr/lyricli.rb] / lib / lyricli / configuration.rb
index 720070ced8181acaa438851a009429e927dbc6a3..811526b5d06b62491106b00e6c1f46d01ec80fd3 100644 (file)
@@ -77,8 +77,7 @@ module Lyricli
     # Loads the default configuration from a JSON file
     def load_default_config
       # Load the default
-      path_root = File.expand_path(File.dirname(__FILE__))
-      path = File.join(path_root, @defaults_path)
+      path = File.join(::Lyricli.root, "config", @defaults_path)
 
       if File.exists?(path)
         file = File.new(path, "r")