MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / __init__

Method __init__

client/codepuppy.py:35–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 """codepuppy启动管理类
34 """
35 def __init__(self):
36 # 命令行输入参数
37 self._params = CmdArgParser.parse_args()
38 # 日志输出设置
39 self.__setup_logger()
40 # 打印版本信息
41 self.__print_client_version()
42
43 if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
44 LogPrinter.info('running in a PyInstaller bundle')
45 else: # 源码执行时,检查是否为python3.7版本
46 if not PythonTool.is_local_python_command_available("python3", python_version="3.7"):
47 raise ConfigError("python3 command(Python Version 3.7) is not available, please install first.")
48 # 运行环境默认编码检查
49 self.__check_encoding()
50
51 # 默认git配置
52 GitConfig.set_default_config()
53
54 def __print_client_version(self):
55 """打印TCA客户端版本信息"""

Callers

nothing calls this directly

Calls 8

__setup_loggerMethod · 0.95
__check_encodingMethod · 0.95
ConfigErrorClass · 0.90
parse_argsMethod · 0.80
set_default_configMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected