MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / __init__

Method __init__

client/node/toolloader/loadconfig.py:50–58  ·  view source on GitHub ↗
(self, os_type=None)

Source from the content-addressed store, hash-verified

48class ConfigLoader(object):
49 """配置文件加载类"""
50 def __init__(self, os_type=None):
51 if not os_type:
52 os_type = settings.PLATFORMS[sys.platform]
53 tool_config_dir = ToolConfig().get_tool_config_dir_path()
54 # linux arm64使用单独的tool配置文件
55 if os_type == "linux" and platform.machine() == "aarch64":
56 os_type = f"{os_type}_arm64"
57 self._tool_config_file = os.path.join(tool_config_dir, "%s_tools.ini" % os_type)
58 self._os_type = os_type
59
60 def __str_to_dict(self, key_str, ref_dict):
61 """

Callers

nothing calls this directly

Calls 2

ToolConfigClass · 0.85

Tested by

no test coverage detected