15 Python scripts into one executable?

前端 未结 2 503
南笙
南笙 2020-12-18 03:33

Ive been tinkering around all day with solutions from here and here:

How would I combine multiple .py files into one .exe with Py2Exe

Packaging multiple scri

2条回答
  •  萌比男神i
    2020-12-18 04:14

    Following setup.py (in the source dir):

    from distutils.core import setup
    import py2exe
    
    setup(console = ['multiple.py'])
    

    And then running as:

      python setup.py py2exe
    

    works fine for me. I didn't have to give any other options to make it work with multiple scripts.

提交回复
热议问题