Permalink
Browse files

allow to pass an additional config file via NOMINATIM_SETTINGS variab…

…le to command line tools

needed for test environment
  • Loading branch information...
lonvia committed Feb 15, 2014
1 parent f89f1a6 commit 29dfc0c259f55430229afea599913eeae47f9a30
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/init-cmd.php
View
@@ -1,4 +1,9 @@
<?php
+ if (file_exists(getenv('NOMINATIM_SETTINGS')))
+ {
+ echo 'Using local config: '.getenv('NOMINATIM_SETTINGS');
+ require_once(getenv('NOMINATIM_SETTINGS'));
+ }
require_once('init.php');
require_once('cmd.php');

0 comments on commit 29dfc0c

Please sign in to comment.