By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

py2exe & application add-ons

P: n/a
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
Share this Question
Share on Google+
3 Replies

P: n/a
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

P: n/a
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

P: n/a
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.