Ignore:
Timestamp:
Oct 17, 2007, 3:19:17 PM (12 years ago)
Author:
Nick Burch
Message:

Make a start on an importer from the full npemaps list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/perllib/NPEMap/Config.pm

    r429 r589  
    1212
    1313# Read in site config
    14 my $config = $FindBin::Bin . '/../npemap.conf';
     14my $config;
     15my @searches = qw( . .. ../.. );
     16foreach my $s (@searches) {
     17        $config = $FindBin::Bin . "/$s/npemap.conf";
     18        if(-f $config) { last; }
     19}
    1520do $config or die "Can't read $config!\n";
    1621
Note: See TracChangeset for help on using the changeset viewer.