Returns all countries including World and WorldCoasts.
(borders_path: AnyStr)
| 33 | |
| 34 | |
| 35 | def get_all_countries_list(borders_path: AnyStr) -> List[AnyStr]: |
| 36 | """Returns all countries including World and WorldCoasts.""" |
| 37 | return [ |
| 38 | f.replace(".poly", "") |
| 39 | for f in os.listdir(borders_path) |
| 40 | if os.path.isfile(os.path.join(borders_path, f)) |
| 41 | ] + list(WORLDS_NAMES) |
| 42 | |
| 43 | |
| 44 | def create_if_not_exist_path(path: AnyStr): |