[PyQt] pyrcc: "-name" does not do anything
Phil Thompson
phil at riverbankcomputing.com
Sat Jul 22 10:34:07 BST 2017
On 20 Jul 2017, at 5:29 pm, Maarten Anonymous <anonymous.maarten at gmail.com> wrote:
>
> Hey,
>
> The -name argument of pyrcc does not do anything.
It never has done.
> When looking at the sources,
> the `mInitName` member of `RCCFileInfo` in https://github.com/baoboa/pyqt5/blob/d9f32341e81ff3c29269c738cdfc1ba8b73db1f3/pyrcc/rcc.cpp and https://github.com/baoboa/pyqt5/blob/d9f32341e81ff3c29269c738cdfc1ba8b73db1f3/pyrcc/rcc.h#L80-L81 is not used anywhere.
>
> That makes it impossible in Python to import a rc module without registering it immediately.
I don't see how fixing -name would make any difference.
I'm happy to add a new flag that suppresses the call to the registration function so that you can call it yourself later on.
Phil
More information about the PyQt
mailing list