py2exe question

Thomas Heller theller at python.net
Thu Mar 25 06:13:23 EST 2004


Guy Robinson <guy at NOSPAM.r-e-d.co.nz> writes:

> I want to package a program (using py2exe) that utilises a number of
> python scripts so that people can't see or change the source code. But
> there is one python script containing some functions I do want the
> user to be able to change. Then when they run the program again these
> functions are available to the main program. Is this possible? How
> could I do it?

Sure. Add the directory that contains this module to sys.path at
runtime, and exclude it from the build process at build time.

Thomas





More information about the Python-list mailing list