(
name_executable,
path_roads_file,
path_resources,
path_res_file,
logger,
output=subprocess.DEVNULL,
error=subprocess.DEVNULL,
)
| 231 | |
| 232 | |
| 233 | def make_world_road_graph( |
| 234 | name_executable, |
| 235 | path_roads_file, |
| 236 | path_resources, |
| 237 | path_res_file, |
| 238 | logger, |
| 239 | output=subprocess.DEVNULL, |
| 240 | error=subprocess.DEVNULL, |
| 241 | ): |
| 242 | world_roads_builder_tool_cmd = [ |
| 243 | name_executable, |
| 244 | f"--path_roads_file={path_roads_file}", |
| 245 | f"--path_resources={path_resources}", |
| 246 | f"--path_res_file={path_res_file}", |
| 247 | ] |
| 248 | logger.info(f"Starting {' '.join(world_roads_builder_tool_cmd)}") |
| 249 | world_roads_builder_tool = subprocess.Popen( |
| 250 | world_roads_builder_tool_cmd, stdout=output, stderr=error, env=os.environ |
| 251 | ) |
| 252 | |
| 253 | wait_and_raise_if_fail(world_roads_builder_tool) |
| 254 | |
| 255 | |
| 256 | def step_prepare_routing_world(env: Env, country: AnyStr, logger, **kwargs): |
no test coverage detected