compiling code

Kyle Yancey kyle at lakeofburningfire.org
Tue Feb 11 19:29:29 EST 2003


There are scripts to do that, but the low tech way is to create a file
that imports your startup script and have your startup compiled as one
of it's modules.  Incidentally, I've found that changing the extension
on your pyo or pyc files to pyw causes no problems on Windows.  If
your user clicks on it, it will be opened without the console box
which is much nicer for Windows users.  Ideally though, you should
have a shortcut that starts you application with pythonw.exe.


On Tue, 11 Feb 2003 23:51:59 GMT, Sam Marrocco
<samSPAMMENOT at twmi.rr.com> wrote:

>I've noticed that my python modules compile themselves into .pyc files, 
>which are nice and unreadable to users. However, my main/startup file 
>(whatever that may be) stays as a text-readable .py or .pyw file.
>
>Is it possible to compile this initial file?





More information about the Python-list mailing list