X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_sysop.pl;h=da242811ffe19f981efad33e2c5c98ce1fe59bd3;hb=b473fa8950fc9a6b747be44434569dec254b0897;hp=3b1196fee93b9205c3babed34d0ddeb2a9967187;hpb=1cf4bd14be226274d5deb05da8480ab91a5dac52;p=spider.git diff --git a/perl/create_sysop.pl b/perl/create_sysop.pl index 3b1196fe..da242811 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; @@ -48,7 +58,8 @@ sub create_it $self->{lastin} = 0; $self->{dxok} = 1; $self->{annok} = 1; - + $self->{lang} = 'en'; + # write it away $self->close();