python生成exe文件并获取exe的父路径方法

import sys
import os
path1=sys.executable
path2=os.path.dirname(path1)
print(path2)
apt 文件生成exe命令
pyinstaller -F 测试用.py

 转自:https://blog.csdn.net/qq_43214142/article/details/109095457

原文地址:https://www.cnblogs.com/javalinux/p/14812591.html