Search code examples
pythonpy2exe

Can py2exe keep a py file as configure script?


I want to distribute a python program as an executable file. I use py2exe with options = {"py2exe":{"bundle_files": 1}}. But I want to keep a py file as configure script ( including not just variables but also functions and classes ).

Can py2exe do this? Or any other way to do it?


Solution

  • It can if you exec () the contents of the .py file.