When RV_PYTHON3 is enabled, RV is unable to open the Browser on the imported cut url because the target url contains a binary string. The root cause of this issue is that Python 3 native string is text and not binary. When we encode the tree_path of the Cut URL, we now use the path() method with the QtCore.QUrl.FullyEncoded flag which returns a native string (str in py3 and bytes in py2) rather than using toEncoded() method which always returns bytes.
On behalf of @isael-standre-adsk
When
RV_PYTHON3
is enabled, RV is unable to open the Browser on the imported cut url because the target url contains a binary string. The root cause of this issue is that Python 3 native string is text and not binary. When we encode the tree_path of the Cut URL, we now use thepath()
method with theQtCore.QUrl.FullyEncoded
flag which returns a native string (str
in py3 and bytes inpy2
) rather than usingtoEncoded()
method which always returnsbytes
.