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/[email protected]/msg09585.html > >> and > >> http://www.mail-archive.com/[email protected]/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 [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
