X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=launch_here.rb;h=80d6c39cb87bd82bd80130f2c32aa916649e0797;hb=1e841175468b3e0357ab278a226a237fe4d7687e;hp=ad149d68c6aa96d1eca7ce2b175e1535f0792009;hpb=634cf13d1ebffd7598bb713707be5b174834a3dd;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/launch_here.rb b/launch_here.rb index ad149d68..80d6c39c 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -3,16 +3,18 @@ # 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}" +SCM_DIR = File.expand_path(File.dirname('__FILE__')) +puts "Running from #{SCM_DIR}" -$:.unshift File.join(SVN_DIR, 'lib') +$:.unshift File.join(SCM_DIR, 'lib') module Irc +class Bot module Config - @@datadir = File.join SVN_DIR, 'data/rbot' - @@coredir = File.join SVN_DIR, 'lib/rbot/core' + @@datadir = File.join SCM_DIR, 'data/rbot' + @@coredir = File.join SCM_DIR, 'lib/rbot/core' end end +end -load File.join(SVN_DIR, 'bin/rbot') +load File.join(SCM_DIR, 'bin/rbot')