+from pathlib import Path
+
+from nominatim.tools.exec_utils import run_osm2pgsql
+
+def get_osm2pgsql_options(nominatim_env, fname, append):
+ return dict(import_file=fname,
+ osm2pgsql=str(nominatim_env.build_dir / 'osm2pgsql' / 'osm2pgsql'),
+ osm2pgsql_cache=50,
+ osm2pgsql_style=str(nominatim_env.src_dir / 'settings' / 'import-extratags.style'),
+ threads=1,
+ dsn=nominatim_env.get_libpq_dsn(),
+ flatnode_file='',
+ tablespaces=dict(slim_data='', slim_index='',
+ main_data='', main_index=''),
+ append=append
+ )
+