Commit f417c7623777b3454f96dd20f5a9a3611bb38001

Authored by Elena.Budnik
1 parent fe7f8a62

correcte path

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
php/makeOrbitsList.php
... ... @@ -4,11 +4,14 @@
4 4 * Uses LocalParams.xml and AMDA params descriptions
5 5 */
6 6  
7   - $AMDA_IHM = getenv('AMDA_IHM');
  7 + $AMDA_IHM = getenv('AMDA_IHM');
8 8  
9   - require_once $AMDA_IHM."/config.php";
  9 + if (!isset($AMDA_IHM))
  10 + require_once __DIR__."/config.php";
  11 + else
  12 + require_once $AMDA_IHM."/php/config.php";
10 13  
11   - if (!defined('orbitsXml'))
  14 + if (!defined('orbitsXml'))
12 15 exit("orbitsXml is not defined in config.php".PHP_EOL);
13 16  
14 17 $pairs = array("-" => "_" );
... ...