change the default location for external data to project dir

This commit is contained in:
Sarah Hoffmann
2021-02-01 17:27:01 +01:00
parent 7ba5283fe8
commit b05c379b39
5 changed files with 74 additions and 32 deletions

View File

@@ -119,10 +119,7 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) {
if ($aCMDResult['import-tiger-data']) {
$bDidSomething = true;
$sTigerPath = getSetting('TIGER_DATA_PATH');
if (!$sTigerPath) {
$sTigerPath = CONST_DataDir.'/data/tiger';
}
$sTigerPath = getSetting('TIGER_DATA_PATH', CONST_InstallDir.'/tiger');
$oSetup->importTigerData($sTigerPath);
}