summaryrefslogtreecommitdiff
path: root/launch_here.rb
blob: ad149d68c6aa96d1eca7ce2b175e1535f0792009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/ruby
#
# Load rbot from this directory. (No need to install it with setup.rb)
#

SVN_DIR = File.expand_path(File.dirname('__FILE__'))
puts "Running from #{SVN_DIR}"

$:.unshift File.join(SVN_DIR, 'lib')

module Irc
  module Config
    @@datadir = File.join SVN_DIR, 'data/rbot'
    @@coredir = File.join SVN_DIR, 'lib/rbot/core'
  end
end

load File.join(SVN_DIR, 'bin/rbot')