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

Method read_value_by_path

tools/python/routing/src/utils.py:61–68  ·  view source on GitHub ↗
(self, *, path)

Source from the content-addressed store, hash-verified

59 raise Exception(f'Cannot read {config_ini_path} file.')
60
61 def read_value_by_path(self, *, path):
62 value = self._read_config_ini_value(config_ini=self.config_ini, path=path)
63 if value.lower() == 'true':
64 return True
65 if value.lower() == 'false':
66 return False
67 else:
68 return value
69
70 def _read_config_ini_value(self, *, config_ini, path):
71 item = path.pop(0)

Callers 9

__init__Method · 0.95
run_routes_builder_toolFunction · 0.80
run_routing_quality_toolFunction · 0.80
get_version_dump_pathFunction · 0.80
run_heap_comparisonFunction · 0.80
compare_two_versionsFunction · 0.80
load_run_config_iniFunction · 0.80
get_vehicle_typeFunction · 0.80

Calls 1

Tested by

no test coverage detected