diff options
author | Alexander Beisig <alexander.beisig@gmx.de> | 2006-07-17 20:22:51 +0000 |
---|---|---|
committer | Alexander Beisig <alexander.beisig@gmx.de> | 2006-07-17 20:22:51 +0000 |
commit | fe11699daa7fb163fbcae00255f031719d50a38c (patch) | |
tree | 49618b8148aae99532d231b799b02b8cc521f48b /bin | |
parent | c1f4fae559645487fed3c413b401b3005d960bc5 (diff) |
Changes that will (hopefully) make rbot work directly from the SVN checkout
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rbot | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -27,7 +27,7 @@ require 'etc' require 'getoptlong' require 'fileutils' -$version="0.9.9" +$version="0.9.10" $opts = Hash.new orig_opts = ARGV.dup @@ -53,10 +53,18 @@ if ($opts["trace"]) } end +defaultlib = File.expand_path(File.dirname($0) + '/../lib') + +if File.directory? "#{defaultlib}/rbot" + unless $:.include? defaultlib + $:.push defaultlib + end +end + begin require 'rbot/ircbot' rescue LoadError => e - puts "Error: couldn't find the rbot/ircbot module (or one of its dependencies)\n - did you install rbot using setup.rb?" + puts "Error: couldn't find the rbot/ircbot module (or one of its dependencies)\n" puts e exit 2 end |