lib/spiderfw/config/configuration.rb in spiderfw-0.6.12 vs lib/spiderfw/config/configuration.rb in spiderfw-0.6.13

- old
+ new

@@ -303,11 +303,15 @@ return h end def get_editor require 'spiderfw/config/configuration_editor' + require 'pathname' editor = ConfigurationEditor.new + config_path = Pathname.new(Spider.paths[:config]).realpath.to_s @loaded_files.each do |f| + f = Pathname.new(f).realpath.to_s + next unless f.index(config_path) == 0 editor.load(f) end editor end \ No newline at end of file