(self, os_type=None)
| 48 | class 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 | """ |
nothing calls this directly
no test coverage detected