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

List:       pykde
Subject:    Re: [PyKDE] Unchecked plugin directory access
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2006-12-29 11:39:40
Message-ID: 200612291139.40888.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 21 December 2006 1:49 pm, Lorenzo Mancini wrote:
> Hello,
>
> 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__)[0],
>                          "widget-plugins")
>
> 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?

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