<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 22 July 2017 at 11:34, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 20 Jul 2017, at 5:29 pm, Maarten Anonymous <<a href="mailto:anonymous.maarten@gmail.com">anonymous.maarten@gmail.com</a>> wrote:<br>
><br>
> Hey,<br>
><br>
> The -name argument of pyrcc does not do anything.<br>
<br>
</span>It never has done.<br></blockquote><div>Will it ever? Maybe print a warning? <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> When looking at the sources,<br>
> the `mInitName` member of `RCCFileInfo` in <a href="https://github.com/baoboa/pyqt5/blob/d9f32341e81ff3c29269c738cdfc1ba8b73db1f3/pyrcc/rcc.cpp" rel="noreferrer" target="_blank">https://github.com/baoboa/<wbr>pyqt5/blob/<wbr>d9f32341e81ff3c29269c738cdfc1b<wbr>a8b73db1f3/pyrcc/rcc.cpp</a> and <a href="https://github.com/baoboa/pyqt5/blob/d9f32341e81ff3c29269c738cdfc1ba8b73db1f3/pyrcc/rcc.h#L80-L81" rel="noreferrer" target="_blank">https://github.com/baoboa/<wbr>pyqt5/blob/<wbr>d9f32341e81ff3c29269c738cdfc1b<wbr>a8b73db1f3/pyrcc/rcc.h#L80-L81</a> is not used anywhere.<br>
><br>
> That makes it impossible in Python to import a rc module without registering it immediately.<br>
<br>
</span>I don't see how fixing -name would make any difference.<br></blockquote><div><br></div><div>pyrcc -h says the -name flag creates an external initialization function with name.</div><div>My interpretation of that flag was that it could change the name of the qInitResources and qCleanupSources functions (and not automatically call them). </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br></blockquote><div> </div><div>That would completely solve my initial problem.</div><div>Right now I am importing the resources module but not using any function.</div><div>Linters are complaining that I am not using that module.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div></div>