<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Why use the Qt resource system at all?<br></blockquote><div><br></div><div>Well, all considering, right now it's just about laziness ("if it works, don't fix it") ;-)</div><div><br></div><div>All my source resource files are located in a different folder, which is a parent of the actual main script, as I wanted to keep the project structure clean, with only python files within the main script folder (and, since the pyrcc compiled file is a single python file, I was fine with that): I've written a script that recreates the whole rcc and calls pyrcc to generate the python file in the main script folder, so right now I only have the import in the main script and everything is done using whateverLoads(':/path/resource'), but there are some cases for which the loading is dynamic and I'm just afraid I'll not be completely sure I'll be able to catch all occurrences in my code.</div><div>But, I get the point: even with cx_freeze I still get lots of files, so adding the resources as single files won't change that much, and I'll only need to get used to the fact that I'll also have the resource directories there.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> If that won't be available, will setThemeSearchPaths work<br>
> anyway?<br>
<br>
Of course. Nothing in Qt forces you to use a resource rather than a <br>
regular file.<br></blockquote><div><br></div><div>Ok, I've tested it (I don't know why I didn't think about that before...) and it obviously works...</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Will all other ":/" resource loading keep their functionalities<br>
> when using local relative paths (or importlib.resources)?<br>
<br>
Sorry, I don't understand the question. Obviously Qt knows nothing about <br>
importlib.resources.<br></blockquote><div></div></div><div><br></div><div>Sorry, I never used importlib.resources before and for some reason I misunderstood everything about that.</div><div><br></div><div>Thank you,</div><div>Maurizio</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div></div>