From 4a7a600f1e026a8555db97d6a63e82a81b829779 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Wed, 11 Jun 2008 23:40:13 +0400 Subject: * launch_here.rb should be runnable from any directory --- launch_here.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'launch_here.rb') diff --git a/launch_here.rb b/launch_here.rb index 80d6c39c..02ba7c8f 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -3,7 +3,10 @@ # Load rbot from this directory. (No need to install it with setup.rb) # -SCM_DIR = File.expand_path(File.dirname('__FILE__')) +SCM_DIR = File.expand_path File.dirname(__FILE__) + +Dir.chdir SCM_DIR + puts "Running from #{SCM_DIR}" $:.unshift File.join(SCM_DIR, 'lib') -- cgit v1.2.3