remove all references to a module path

No longer used now that legacy tokenizer is gone.
This commit is contained in:
Sarah Hoffmann
2024-09-21 17:39:01 +02:00
parent 9734bbf240
commit b54ff7d766
12 changed files with 15 additions and 29 deletions

View File

@@ -111,8 +111,7 @@ class CommandlineParser:
args.config = Configuration(args.project_dir,
environ=kwargs.get('environ', os.environ))
args.config.set_libdirs(module=kwargs['module_dir'],
osm2pgsql=kwargs['osm2pgsql_path'])
args.config.set_libdirs(osm2pgsql=kwargs['osm2pgsql_path'])
log = logging.getLogger()
log.warning('Using project directory: %s', str(args.project_dir))

View File

@@ -72,7 +72,6 @@ class Configuration:
self.project_dir = None
class _LibDirs:
module: Path
osm2pgsql: Path
sql = paths.SQLLIB_DIR
data = paths.DATA_DIR

View File

@@ -9,7 +9,6 @@ Path settings for extra data used by Nominatim.
"""
from pathlib import Path
PHPLIB_DIR = (Path(__file__) / '..' / '..' / '..' / 'lib-php').resolve()
SQLLIB_DIR = (Path(__file__) / '..' / '..' / '..' / 'lib-sql').resolve()
DATA_DIR = (Path(__file__) / '..' / '..' / '..' / 'data').resolve()
CONFIG_DIR = (Path(__file__) / '..' / '..' / '..' / 'settings').resolve()