From fd712a6e220c24c92979a73d9c6a87b762772e43 Mon Sep 17 00:00:00 2001 From: Lee Reilly Date: Wed, 25 Apr 2012 10:08:35 -0700 Subject: [PATCH] Unshift --- lib/swot.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/swot.rb b/lib/swot.rb index 3b61b2c6ed..fcecc1f4d1 100644 --- a/lib/swot.rb +++ b/lib/swot.rb @@ -1,3 +1,5 @@ +$:.unshift(File.dirname(__FILE__)) + require 'public_suffix' module Swot @@ -175,6 +177,7 @@ module Swot # Return the institution name, or nil if not found. def name_from_academic_domain(domain) begin + file = File.expand_path(__FILE__+'/..') file = File.open("lib/domains/#{domain.tld}/#{domain.sld}", "rb") contents = file.read contents.strip!