X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0cbf98c0204f0e90e1f6d22110eb80ee87dae0e0..6a7e0d652b1d40a397e1c1386d500101796676c4:/nominatim/cli.py diff --git a/nominatim/cli.py b/nominatim/cli.py index 845b1451..8cb73a8e 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -68,7 +68,8 @@ class CommandlineParser: self.parser.print_help() return 1 - for arg in ('module_dir', 'osm2pgsql_path', 'phplib_dir', 'data_dir', 'phpcgi_path'): + for arg in ('module_dir', 'osm2pgsql_path', 'phplib_dir', 'sqllib_dir', + 'data_dir', 'config_dir', 'phpcgi_path'): setattr(args, arg, Path(kwargs[arg])) args.project_dir = Path(args.project_dir).resolve() @@ -77,7 +78,7 @@ class CommandlineParser: datefmt='%Y-%m-%d %H:%M:%S', level=max(4 - args.verbose, 1) * 10) - args.config = Configuration(args.project_dir, args.data_dir / 'settings') + args.config = Configuration(args.project_dir, args.config_dir) log = logging.getLogger() log.warning('Using project directory: %s', str(args.project_dir))