added Log Parsing
[spider.git] / perl / create_sysop.pl
index 3b1196fee93b9205c3babed34d0ddeb2a9967187..da242811ffe19f981efad33e2c5c98ce1fe59bd3 100755 (executable)
@@ -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();