# simple_tool **Repository Path**: ytl1990/simple_tool ## Basic Information - **Project Name**: simple_tool - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-04-04 - **Last Updated**: 2023-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 能够采集CPU相关的数据(cpu频率,cpu大小核负载,cpu大小核时长,进程cpu负载,进程cpu大小核时长,另外可以采集fps数据,内存和应用内存获取未开发 单独运行需要安装相关的库 在写python程序中,有可能需要获取当前运行脚本的路径。打包成exe的脚本和直接运行地脚本在获取路径上稍微有点不同。 # determine if application is a script file or frozen exe if getattr(sys, 'frozen', False): application_path = os.path.dirname(sys.executable) elif __file__: application_path = os.path.dirname(__file__) Pyinstaller -F .\main.py --add-data ".\config\\*;.\config" https://blog.csdn.net/Jayden_Gu/article/details/94134409 https://blog.csdn.net/u012219045/article/details/114841287 打包成exe的命令如下: pythoninstaller