macOS Mojave 10.14.5
我正在使用py2app构建一个独立的应用程序,并且效果很好。运行可执行文件后,它将弹出一个窗口,显示“ ESMB错误”,并带有打开控制台或终止的选项。但是,一旦从命令行运行它,我就会得到"/Library/Frameworks/Python.framework/Versions/3.7/bin/python3: can't find '__main__' module in 'ESMB.app/"
这是我一直在使用的setup.py。
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['ESMB.py']
DATA_FILES = []
OPTIONS = {
'iconfile':'icon.icns',
'includes': ['ttkthemes']
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
让我知道您是否需要我添加