# ScriptTool **Repository Path**: three_body_001/script-tool ## Basic Information - **Project Name**: ScriptTool - **Description**: Tools of python - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-22 - **Last Updated**: 2025-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ScriptTool #### 介绍 Tools of python * scan.py 用于下载开源三方库源代码 * thirdpartyGraph.py 用于扫描三方库依赖关系,输出树图目录,以及用于echart绘图的data.js #### 使用说明 需要先下载三方库代码: ``` git clone git@gitee.com:openharmony-sig/tpc_c_cplusplus.git ``` scan.py使用: ``` rootDir = "D:/zwzhangFiles/tpc_c_cplusplus/thirdparty" downloadDir = "D:/zwzhangFiles/thirdparty/download/" gitDir = "D:/zwzhangFiles/thirdparty/gitRepo/" ``` 将rootDir替换为三方库的thirdparty目录,设置源代码的下载目录和clone目录。 thirdpartyGraph.py: ``` rootDir = "D:/zwzhangFiles/tpc_c_cplusplus/thirdparty" outputDir = "D:/zwzhangFiles/thirdparty/graph/" ``` 将rootDir替换为三方库的thirdparty目录,设置树图以及data的输出目录。