On 9/8/06, Russell E. Owen <[EMAIL PROTECTED]> wrote:
> I was using an older version of py2app to distribute an application.
> This placed the python library code in TUI.app/Contents/Resources/Python/
>
> I just upgraded to py2app 0.3.5 and now I find the same stuff is being
> put in TUI.app/Contents/Resources/lib/python2.4/
>
> This change breaks my code because resource files need to go in the same
> location, though I can certainly modify the code that copies the
> resource files.

Put them in a package and include the package with the --packages option.

> My main question is: am I seeing this change because I'm doing something
> wrong (in which case I'd like to fix it)? Or is it just the new way to
> do things (in which case I can modify my resource copying code)?

New way.

> If it's the new way to do things, is there a recommended way to find
> this directory automatically (or copy directory trees of files into it
> automatically without knowing its name) -- to insulate myself against
> future such changes?

If files are supposed to live with the code, it should be living in a
python package.

-bob
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to