py2exe: Distributing .py files

Ed newsmaster at eris.qinetiq.com
Mon Dec 16 09:08:47 EST 2002


You could do it by making your python read a text file, and "exec" the 
contents. Although I would probably advocate a little more security!



Thomas Guettler wrote:

> Hi!
> 
> Is it possible to create an executeable
> with py2exe which calls a python file,
> instead of building it into the exe file?
> 
> Background: My customer should be able to
> change the python file. But he can't
> if the script is build into an exe.
> 
> I just need a "simple" exe which calls the
> script "foo.py". The exe file and the python
> script will be sent to the customer.
> 
> thomas




More information about the Python-list mailing list