Mailing List Archive

Embedding Questions on the Macintosh
Hi, I am writing a game which uses Python as the control language for a
bunch of sprites. I don't have any problems doing the embedding part.

What I want to know is if it is easy to package the entire Python Library,
much like the "macfreeze" module does? I want to distributes as few
modifiable files as possible, and would prefer to distribute only two files:
the application, and the data file.

Thanks!
Embedding Questions on the Macintosh [ In reply to ]
At 9:01 AM -0700 6/14/99, Sean Hummel wrote:
>Hi, I am writing a game which uses Python as the control language for a
>bunch of sprites. I don't have any problems doing the embedding part.
>
>What I want to know is if it is easy to package the entire Python Library,
>much like the "macfreeze" module does? I want to distributes as few
>modifiable files as possible, and would prefer to distribute only two files:
>the application, and the data file.

That's indeed possible, you need to pack all modules as 'PYC ' resources
into the app. Check out PackLibDir.py.

Finally you have to add
$(APPLICATION)
to your app's path prefs. One way is to create a new resource file, drop it
onto EditPythonPrefs and add it to your C project.

Just