]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blob - launch_here.rb
02ba7c8f0ceb43bbaec472b2ddefa1b4b30660dd
[user/henk/code/ruby/rbot.git] / launch_here.rb
1 #!/usr/bin/ruby
2 #
3 # Load rbot from this directory. (No need to install it with setup.rb)
4 #
5
6 SCM_DIR = File.expand_path File.dirname(__FILE__)
7
8 Dir.chdir SCM_DIR
9
10 puts "Running from #{SCM_DIR}"
11
12 $:.unshift File.join(SCM_DIR, 'lib')
13
14 module Irc
15 class Bot
16   module Config
17     @@datadir = File.join SCM_DIR, 'data/rbot'
18     @@coredir = File.join SCM_DIR, 'lib/rbot/core'
19   end
20 end
21 end
22
23 load File.join(SCM_DIR, 'bin/rbot')