X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=launch_here.rb;h=80d6c39cb87bd82bd80130f2c32aa916649e0797;hb=1e841175468b3e0357ab278a226a237fe4d7687e;hp=033e075fd14729518811b2bbaf2d5c4d6fa0ad94;hpb=6f5528a63b44e610a3d25d7fe583399163d7d2da;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/launch_here.rb b/launch_here.rb index 033e075f..80d6c39c 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -3,18 +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')