summaryrefslogtreecommitdiff
path: root/launch_here.rb
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-06-11 23:40:13 +0400
committerdmitry kim <jason@nichego.net>2008-06-11 23:40:13 +0400
commit4a7a600f1e026a8555db97d6a63e82a81b829779 (patch)
treeac2849b480b62b6fd3f951fa4e834ab334972ae8 /launch_here.rb
parentdd64d68b79cc41d3457c4abb6e2ec998b9721df8 (diff)
* launch_here.rb should be runnable from any directory
Diffstat (limited to 'launch_here.rb')
-rwxr-xr-xlaunch_here.rb5
1 files changed, 4 insertions, 1 deletions
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')