封装python脚本 Posted on 2024-09-12 In python , 脚本 Symbols count in article: 167 Reading time ≈ 1 mins. 封装python脚本使用pyinstaller进行封装 1pyinstaller <python文件名> 会生成三个文件bulid、dist和一个spec文件 exe程序位于dist文件夹中 exe程序中的源程序所对应的路径是dist文件夹中的__internal文件夹 1path = os.path.dirname(__file__)