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

Method get_opt_path

tools/python/maps_generator/generator/settings.py:66–67  ·  view source on GitHub ↗
(self, s: AnyStr, v: AnyStr, default: AnyStr = "")

Source from the content-addressed store, hash-verified

64 return self.config.get(s, v) if self.config.has_option(s, v) else default
65
66 def get_opt_path(self, s: AnyStr, v: AnyStr, default: AnyStr = ""):
67 return os.path.expanduser(self.get_opt(s, v, default))
68
69 @staticmethod
70 def _get_env_val(s: AnyStr, v: AnyStr):

Callers 1

initFunction · 0.95

Calls 1

get_optMethod · 0.95

Tested by

no test coverage detected