(self)
| 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客户端版本信息""" |
nothing calls this directly
no test coverage detected