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

BASEDIR = Dir.pwd

#puts "Load path: #{$LOAD_PATH.inspect}"

def add_to_path(dir)
  $LOAD_PATH.unshift dir
end

module Irc
  module PKGConfig
    DATADIR = File.join BASEDIR, 'data/rbot'
    COREDIR = File.join BASEDIR, 'lib/rbot/core'
  end
end

add_to_path( File.join BASEDIR, 'lib' )

p ARGV
ARGV << "--debug"
p ARGV

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