Using bundle_files = 1 with py2exe is not working

后端 未结 4 950
小蘑菇
小蘑菇 2020-12-31 05:23

After some big frustration I did it! I converted my django app to an \"exe\" one to run as a single standalone app on windows (using cherrypy as a WSGI server) But When I tr

4条回答
  •  渐次进展
    2020-12-31 05:48

    Here's The solution:

    from distutils.core import setup
    import py2exe, sys, os
    
    sys.argv.append('py2exe')
    
    setup(
        options = {'py2exe': {'bundle_files': 3}},
        windows = [{'script': "Your_App_Name.py"}],
        zipfile = None,
    )
    

提交回复
热议问题