From: dmitry kim Date: Wed, 11 Jun 2008 19:51:32 +0000 (+0400) Subject: * launch_here.rb: patch $0 to make restart work X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=f7c5aadba0ab9642f8ec9685b1a2a0c9fd6781d8;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git * launch_here.rb: patch $0 to make restart work --- diff --git a/launch_here.rb b/launch_here.rb index 02ba7c8f..95d383ba 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -4,6 +4,7 @@ # SCM_DIR = File.expand_path File.dirname(__FILE__) +$0 = File.expand_path $0 Dir.chdir SCM_DIR