MCPcopy Create free account
hub / github.com/comaps/comaps / get_all_countries_list

Function get_all_countries_list

tools/python/maps_generator/generator/env.py:35–41  ·  view source on GitHub ↗

Returns all countries including World and WorldCoasts.

(borders_path: AnyStr)

Source from the content-addressed store, hash-verified

33
34
35def 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
44def create_if_not_exist_path(path: AnyStr):

Callers 5

__init__Method · 0.90
mainFunction · 0.90
step_featuresFunction · 0.90
env.pyFile · 0.85
__init__Method · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected