X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2Fcreate_sysop.pl;h=1e553209d9045dacc65d7b2712cc0e83e2182428;hp=3b1196fee93b9205c3babed34d0ddeb2a9967187;hb=3f145290a93b39bf15b50269dd8be585d7b4bc9c;hpb=602b16e109137598da1bb8a363c0bfb4028701b3 diff --git a/perl/create_sysop.pl b/perl/create_sysop.pl index 3b1196fe..1e553209 100755 --- a/perl/create_sysop.pl +++ b/perl/create_sysop.pl @@ -9,6 +9,16 @@ # $Id$ # +# make sure that modules are searched in the order local then perl +BEGIN { + # 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 DXVars; use DXUser;