merge back some files from SIMPLEROUTE
[spider.git] / perl / callbot.pl
index 6d845a215a91263667ef5b05bca1df629bce94ac..d03f9e2d383ae3d0f6ae0f123e3a69389bddd5d9 100755 (executable)
 package main;
 
 BEGIN {
-       unshift @INC, '.';
+       umask 002;
+       
+       # root of directory tree for this system
+       $root = "/spider"; 
+       $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'};
+       
+       unshift @INC, "$root/perl";     # this IS the right way round!
+       unshift @INC, "$root/local";
 }
 
 use strict;