[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] plugins and py2exe in PyQt4
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2007-02-25 23:28:27
Message-ID: 200702252328.27938.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Sunday 25 February 2007 6:03 pm, Giovanni Bajo wrote:
> On 25/02/2007 17.21, Phil Thompson wrote:
> >> Following on from previous threads, e.g.
> >> http://www.mail-archive.com/pykde@mats.imk.fraunhofer.de/msg09585.html
> >> and
> >> http://www.mail-archive.com/pykde@mats.imk.fraunhofer.de/msg09565.html ,
> >> the widget-plugins directory does not exist if a script is converted to
> >> an exe file using py2exe (well it exists in a zip file, but that's hard
> >> to solve). This means you can't load ui files in the program.
> >>
> >> An easy workaround would be for objcreator.py to ignore loading plugins
> >> if the plugin directory does not exist. Would it be possible to have a
> >> check for the directory or a catch for the exception?
> >
> > I would prefer to see the real bug in py2exe fixed.
>
> I maintain PyInstaller. Personally, I can't do anything to fix this, if
> objcreator.py insists on unconditionally calling os.listdir().

Sorry - should have looked at the code more closely. I was under the 
impression that the plugin directory contained an __init__.py and so thought 
py2exe had a problem with simple packages.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic