making a python program executable

前端 未结 3 2110
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 16:02
from distutils.core import setup
import py2exe, sys, os

sys.argv.append(\'py2exe\')

setup(
    options = {\'py2exe\': {\'bundle_files\': 1}},
    windows = [{\'script\         


        
3条回答
  •  天命终不由人
    2021-02-06 16:35

    Yes. Are you making a windowing application or a console application? See the example setup.py files that came with py2exe.

提交回复
热议问题