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

Method setup_borders

tools/python/maps_generator/generator/env.py:594–603  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

592
593
594 def setup_borders(self):
595 temp_borders = self.paths.generation_borders_path
596 borders = PathProvider.borders_path()
597 for x in self.countries:
598 if x in WORLDS_NAMES:
599 continue
600
601 poly = f"{x}.poly"
602 make_symlink(os.path.join(borders, poly), os.path.join(temp_borders, poly))
603 make_symlink(temp_borders, os.path.join(self.paths.draft_path, "borders"))
604
605 def setup_osm2ft(self):
606 for x in os.listdir(self.paths.osm2ft_path):

Callers 1

__init__Method · 0.95

Calls 3

make_symlinkFunction · 0.90
borders_pathMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected