469,955 Members | 1,703 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,955 developers. It's quick & easy.

py2exe & application add-ons

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?

--
Thx, Alex Gusarov
Jun 27 '08 #1
3 946
Alex Gusarov <al************@gmail.comwrote:
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-
Jun 27 '08 #2
On Jun 19, 6:00*am, "Alex Gusarov" <alex.m.gusa...@gmail.comwrote:
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?

--
Thx, Alex Gusarov
I know some of the people here swear by the "freeze" modules. As I
understand it, you can use them to just distribute your pyc files.
This makes updates very small, or so I've heard. I haven't tried it
yet.

Mike
Jun 27 '08 #3
Thanks everybody, yes, I use 'exec' for files.
And "freeze" modules - thanks too, I almost forgot this opportunity.

--
Best regards, Alex Gusarov
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
8 posts views Thread by Kathleen Kudzma | last post: by
1 post views Thread by klaus.roedel | last post: by
reply views Thread by guilligan.geo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.