[Pythonmac-SIG] EasyDialogs and py2app

Kevin Dangoor dangoor at gmail.com
Fri May 13 03:51:54 CEST 2005


Thanks! That's what I figured, but I wanted to be sure I wasn't
missnig something.

On 5/12/05, Bob Ippolito <bob at redivi.com> wrote:
> I'll put some hooks into py2app 0.2 to pick these up.. but:
> 
> from distutils.core import setup
> import py2app
> import os
> import EasyDialogs
> plat_mac = os.path.dirname(EasyDialogs.__file__)
> rsrcFile = os.path.join(plat_mac, 'dialogs.rsrc')
> setup(
>      data_files=[rsrcFile],
>      ...
> )
> 
> On May 12, 2005, at 3:18 PM, Kevin Dangoor wrote:
> 
> > I should clarify: when I ask "what's the right way to point to the
> > file", I mean rather than hardcoding the path to the file in my Python
> > installation, if anyone knows the correct way to get the file path in
> > Python code. (I could do something like EasyDialogs.__file__ and then
> > grab the directory from there)
> >
> > Kevin
> >
> > On 5/12/05, Kevin Dangoor <dangoor at gmail.com> wrote:
> >
> >> I have an application that uses EasyDialogs and is packaged up with
> >> py2app. When I run it, it seems to have trouble finding dialogs.rsrc:
> >>
> >>   File "EasyDialogs.pyc", line 193, in AskYesNoCancel
> >>   File "EasyDialogs.pyc", line 49, in _initialize
> >>   File "macresource.pyc", line 63, in need
> >> macresource.ResourceFileNotFoundError: dialogs.rsrc
> >>
> >> I'm using my own Python 2.4 framework build. Should I have to do
> >> anything to be sure that this file is included? What's the *right*
> >> way
> >> to point to the file in my setup?
> >>
> >> Thanks,
> >> Kevin
> >>
> >>
> > _______________________________________________
> > Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> > http://mail.python.org/mailman/listinfo/pythonmac-sig
> >
> 
>


More information about the Pythonmac-SIG mailing list