From 64543b5ba6e6bd7b20be15fb5c55acbe23f05dac Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 3 Mar 2025 19:53:16 -0700 Subject: [PATCH] Fixing importing multiple map files. --- modules/map/lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/map/lib.py b/modules/map/lib.py index 9b65f932..f5867595 100644 --- a/modules/map/lib.py +++ b/modules/map/lib.py @@ -186,9 +186,9 @@ async def run_import_command(*paths: Path) -> int: import_logger.warning(f'Could not import non-pbf file: {path}') raise ValueError('Invalid PBF file') - paths = ' '.join(str(i) for i in paths) + paths = list(map(str, paths)) # Run with sudo so renderd can be restarted. - cmd = (SUDO_BIN, f'{PROJECT_DIR}/scripts/import_map.sh', paths) + cmd = (SUDO_BIN, f'{PROJECT_DIR}/scripts/import_map.sh', *paths) import_logger.warning(f'Running map import command: {cmd}') result = await run_command(cmd, debug=True)