summaryrefslogtreecommitdiff
path: root/launch_here.rb
diff options
context:
space:
mode:
Diffstat (limited to 'launch_here.rb')
-rwxr-xr-xlaunch_here.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/launch_here.rb b/launch_here.rb
new file mode 100755
index 00000000..2e7161db
--- /dev/null
+++ b/launch_here.rb
@@ -0,0 +1,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' )