简体   繁体   English

py2exe可以将py文件保留为配置脚本吗?

[英]Can py2exe keep a py file as configure script?

I want to distribute a python program as an executable file. 我想将python程序作为可执行文件分发。 I use py2exe with options = {"py2exe":{"bundle_files": 1}} . 我将py2exe与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 ). 但是我想保留一个py文件作为配置脚本(不仅包括变量,还包括函数和类)。

Can py2exe do this? py2exe可以这样做吗? Or any other way to do it? 还是其他方式可以做到?

如果您执行(.py).py文件的内容,则可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM