shotgunsoftware / tk-multi-importcut

Import Cut app
Other
0 stars 0 forks source link

SG-19650: 'View in Shotgun' after Import Cut won't open the Browser on new Cut #63

Closed jfboismenu closed 3 years ago

jfboismenu commented 3 years ago

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 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.