py2exe & application add-ons

Matthew Woodcraft mattheww at chiark.greenend.org.uk
Thu Jun 19 12:43:03 EDT 2008


Alex Gusarov <alex.m.gusarov at gmail.com> wrote:
> Hello, I've met a problem - I want my program working without Python
> installation but I have some add-on mechanism (add-ons represented by
> separate .py files, and application auto-recognize such files on
> start).

> So, if I will using py2exe for main program and separate .py files for
> add-ons, will I need Python installation on client machine?
> Maybe other ways exist for such tasks?

py2exe's output includes a complete Python interpreter, so it should
work just fine.

If you want to load the .py files using 'import' you might have to
fiddle a bit, but if you just open the files and use 'exec' it should
be very easy indeed.

-M-



More information about the Python-list mailing list