py2exe 可以保留一个 py 文件作为配置脚本吗?

Can py2exe keep a py file as configure script?

我想将 python 程序作为可执行文件分发。我将 py2exe 与 options = {"py2exe":{"bundle_files": 1}} 一起使用。但我想保留一个 py 文件作为配置脚本(不仅包括变量,还包括函数和 类 )。

py2exe能做到吗?或者有其他方法吗?

exec().py文件内容即可