bin/hayabusa_fcgi.rb in hayabusa-0.0.13 vs bin/hayabusa_fcgi.rb in hayabusa-0.0.14

- old
+ new

@@ -15,13 +15,12 @@ require "rubygems" require "fcgi" require "fileutils" #Try to load development-version to enable debugging without doing constant gem-installations. - path = "/home/kaspernj/Ruby/knjrbfw/lib/knjrbfw.rb" - if File.exists?(path) - require path - else + begin + require "#{File.realpath(File.dirname(__FILE__))}/../../knjrbfw/lib/knjrbfw.rb" + rescue LoadError require "knjrbfw" end #Load 'Hayabusa' and start the FCGI-loop to begin handeling requests. require "#{File.dirname(Knj::Os.realpath(__FILE__))}/../lib/hayabusa.rb" \ No newline at end of file