]> git.donarmstrong.com Git - infobot.git/commitdiff
kill handcoded ravenbot paths
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 2 Feb 2010 01:14:39 +0000 (01:14 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 2 Feb 2010 01:14:39 +0000 (01:14 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1880 c11ca15a-4712-0410-83d8-924469b57eb5

files/directories [deleted file]
infobot

diff --git a/files/directories b/files/directories
deleted file mode 100644 (file)
index 6c56cc2..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-$bot_state_dir = '/home/ravenbird/infobot/files';
-$bot_data_dir  = '/home/ravenbird/infobot/files';
-$bot_src_dir   = '/home/ravenbird/infobot/src';
-$bot_log_dir   = '/home/ravenbird/infobot/log';
-$bot_run_dir   = '/home/ravenbird/infobot';
-
diff --git a/infobot b/infobot
index eaa866e99c2024dcd7254e8ee3d159b123f63bbb..e0c1ad20d65ad887036212802e8f4a60e2b1078f 100755 (executable)
--- a/infobot
+++ b/infobot
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
 
 # infobot
 # copyright kevin lenzo (c) 1997-1999
@@ -19,7 +19,8 @@ BEGIN {
     }
 
     # set any $bot_*_dir var's that aren't already set
-    $bot_base_dir      ||= '/SOME/DIRECTORY/HERE';
+    $bot_base_dir      ||= `pwd`;
+    chomp($bot_base_dir);
     $bot_config_dir    ||= "$bot_base_dir/files/";
     $bot_data_dir      ||= "$bot_base_dir/files/";
     $bot_state_dir     ||= "$bot_base_dir/files/";
@@ -28,8 +29,6 @@ BEGIN {
     $bot_log_dir    ||= "$bot_base_dir/log";
     $bot_misc_dir      ||= "$bot_base_dir/files";
 
-    require "$bot_config_dir/directories";
-
     $bot_pid = $$;
 
     $bot_base_dir = $bot_state_dir;