X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcallbot.pl;h=d03f9e2d383ae3d0f6ae0f123e3a69389bddd5d9;hb=d6e7a9bbbb50b7feccab14ec690b3ccf690bc385;hp=6d845a215a91263667ef5b05bca1df629bce94ac;hpb=9b16ab623efe48723ba472624cf4020b155f683c;p=spider.git diff --git a/perl/callbot.pl b/perl/callbot.pl index 6d845a21..d03f9e2d 100755 --- a/perl/callbot.pl +++ b/perl/callbot.pl @@ -16,7 +16,14 @@ 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;