source: trunk/npemap.org.uk/perllib/NPEMap/Config.pm @ 589

Last change on this file since 589 was 589, checked in by Nick Burch, 12 years ago

Make a start on an importer from the full npemaps list

File size: 537 bytes
Line 
1package NPEMap::Config;
2
3use vars qw(@ISA @EXPORT $tt_config $rootdir);
4use warnings;
5use strict;
6
7use FindBin;
8
9require Exporter;
10@ISA    = qw(Exporter);
11@EXPORT = qw($tt_config $dbname $dbhost $dbuser $dbpass $staticdir $tiledir);
12
13# Read in site config
14my $config;
15my @searches = qw( . .. ../.. );
16foreach my $s (@searches) {
17        $config = $FindBin::Bin . "/$s/npemap.conf";
18        if(-f $config) { last; }
19}
20do $config or die "Can't read $config!\n";
21
22$tt_config = {
23    INCLUDE_PATH => $rootdir . '/templates',
24    EVAL_PERL    => 0,
25};
26
271;
Note: See TracBrowser for help on using the repository browser.