Make a py2exe exe run without a console?

末鹿安然 提交于 2019-11-27 08:24:14
Joel Christophel

For one exe file, use this setup (taken from this answer):

from distutils.core import setup
import py2exe, sys, os

sys.argv.append('py2exe')

setup(
    options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
    windows = [{'script': "single.py"}],
    zipfile = None,
)
from distutils.core import setup
import py2exe, sys, os

sys.argv.append('py2exe')

setup(
    windows = [{'script': "pytho.py"}],
)

edited for py2exe x64 support 64-bit does not have zipping

using: python 2.7 amd64

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!