(osm2ft_path, mwm_id)
| 119 | |
| 120 | |
| 121 | def load_osm2ft(osm2ft_path, mwm_id): |
| 122 | osm2ft_name = os.path.join(osm2ft_path, mwm_id + ".mwm.osm2ft") |
| 123 | if not os.path.exists(osm2ft_name): |
| 124 | logging.error(f"Cannot find {osm2ft_name}") |
| 125 | sys.exit(3) |
| 126 | with open(osm2ft_name, "rb") as f: |
| 127 | return read_osm2ft(f, ft2osm=True, tuples=False) |
| 128 | |
| 129 | |
| 130 | def inject_promo_ids( |
no test coverage detected