[PyQt] Problem loading qml when pyqtdeployed

Phil Thompson phil at riverbankcomputing.com
Fri Jan 9 22:09:27 GMT 2015


On 09/01/2015 9:59 pm, bootch at nc.rr.com wrote:
> At least when pyqtdeploy'ed, __file__ is returning a non-absolute path
> like ':/__main__.pyo'.

That is an absolute path (in an rcc generated filesystem).

> This stack overflow post seems relevant
> http://stackoverflow.com/questions/7116889/python-file-attribute-absolute-or-relative
> but it says after Python 3.4, __file__ should be an absolute path.
> 
> But I recall that pyqtdeploy may be setting the __freeze__ attribute
> of frozen modules.  Should I delve into that code?

I'll look at your original example when I get the chance.

Phil


More information about the PyQt mailing list