forked from hans/Nominatim
use data paths from new nominatim.paths
This commit is contained in:
@@ -88,4 +88,4 @@ class AdminFuncs:
|
||||
params.append('--reverse-only')
|
||||
if args.target == 'search':
|
||||
params.append('--search-only')
|
||||
return run_legacy_script(*params, nominatim_env=args)
|
||||
return run_legacy_script(*params, config=args.config)
|
||||
|
||||
@@ -42,12 +42,6 @@ class NominatimArgs:
|
||||
# Basic environment set by root program.
|
||||
config: Configuration
|
||||
project_dir: Path
|
||||
module_dir: Path
|
||||
osm2pgsql_path: Path
|
||||
phplib_dir: Path
|
||||
sqllib_dir: Path
|
||||
data_dir: Path
|
||||
config_dir: Path
|
||||
phpcgi_path: Path
|
||||
|
||||
# Global switches
|
||||
@@ -181,7 +175,7 @@ class NominatimArgs:
|
||||
from the command line arguments. The resulting dict can be
|
||||
further customized and then used in `run_osm2pgsql()`.
|
||||
"""
|
||||
return dict(osm2pgsql=self.config.OSM2PGSQL_BINARY or self.osm2pgsql_path,
|
||||
return dict(osm2pgsql=self.config.OSM2PGSQL_BINARY or self.config.lib_dir.osm2pgsql,
|
||||
osm2pgsql_cache=self.osm2pgsql_cache or default_cache,
|
||||
osm2pgsql_style=self.config.get_import_style_file(),
|
||||
osm2pgsql_style_path=self.config.config_dir,
|
||||
|
||||
@@ -87,7 +87,7 @@ class SetupAll:
|
||||
|
||||
LOG.warning('Setting up country tables')
|
||||
country_info.setup_country_tables(args.config.get_libpq_dsn(),
|
||||
args.data_dir,
|
||||
args.config.lib_dir.data,
|
||||
args.no_partitions)
|
||||
|
||||
LOG.warning('Importing OSM data file')
|
||||
|
||||
Reference in New Issue
Block a user