Distributing Python apps; is this kosher ?
Gary Duncan
gmduncan at netspace.net.au
Fri May 2 23:44:52 EDT 2003
I've whipped up a little Python demo script for a friend as a
self-running CD; he doesn't have Python on his Windoze NT box and I
didn't want to get him to install it.
What I did works, but seems a little klugey ; maybe there's a better way
if so pse advice.
The CD contains :-
1) an 'autorun.inf ' file , containing :-
[autorun]
open = python my_script.py
2) the my_script.py (which does some simple graphics using TKinter, btw)
) the contents of C:\Python23 (I used the latest version)
- all at the top level of the CD , ie not in a Python23 dir
3) python23.dll (see further)
- this wasn't in C:\Python23 ; I had to copy it from my
E:\WINNT\system32 dir (WIN2000 is on my E: drive)
Put the CD into a Windoze box and the scripts runs. Nice and simple.
I expected to have to mess around setting up env-vars for PYTHONPATH,
TKPATH (?) but this wasn't necessary. Seems Python is smart enough to
find the TK/Tcl stuff in its dir.
Concerning Python23.dll, my first attempt failed because a copy of that
dll wasn't left in C:\Python23. I'm wondering why this is so.
Again, feedback welcome.
- Gary
More information about the Python-list
mailing list