ID 145911 - Browser favorites icons require a full path when using nuke.addFavoriteDir() via Python.

Follow

Problem summary
Browser favorites icons require a full path when using nuke.addFavoriteDir() via Python.


Customer reported version
nuke.n/a


Customer reported platform
n_a_windows


Steps to reproduce

1) Path to the .nuke directory and create/open a menu.py file.

2) Add the following line, replacing the paths for your own: nuke.addFavoriteDir('TEST', directory='path/to/folder', icon="custom icon here")

3) Open Nuke and view the File Browser for the favorite icon.


Expected behavior
The file icon should appear relative to the directory of the favorite folder.


Actual behavior
A default folder icon appears instead of a custom one. This also occurs when using relative file paths or via environment variables such as NUKE_PATH and placing the icon in that directory.


Workaround
Adding the full file path to the icon works as expected.


Reproduced by Support in:
Nuke 13.0v2 - Windows 10, macOS 10.14

Nuke 13.0v1 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.0v1 - Windows 10

Nuke 9.0v1 - Windows 10

Nuke 8.0v1 - Windows 10, macOS 10.14


Earliest version tested
Nuke 8.0v1 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why