[PyKDE] Unchecked plugin directory access
phil at riverbankcomputing.co.uk
Fri Dec 29 11:39:40 GMT 2006
On Thursday 21 December 2006 1:49 pm, Lorenzo Mancini wrote:
> in PyQt 4.1.1 and snapshot 20061220, class QObjectCreator makes an
> unchecked access to widget-plugins directory in its constructor:
> (PyQt4/uic/objcreator.py: 21)
> plugindir = os.path.join(os.path.split(__file__),
> for filename in os.listdir(plugindir):
> The above code gets executed if you build your UIs with Designer and
> then use loadUi in your application. There is nothing wrong with that,
> as long as you run your programs through the Python interpreter.
> However, should one try to package the appplication with PyInstaller,
> py2exe and similar tools, that would be an issue, since likely that
> directory won't be available in "frozen" state.
Why not? Is it because the directory doesn't have a __init__.py file?
More information about the PyQt