fixed create_sysop so that the it has the correct BEGIN sequence, which will
[spider.git] / perl / create_sysop.pl
index 3b1196fee93b9205c3babed34d0ddeb2a9967187..1e553209d9045dacc65d7b2712cc0e83e2182428 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;