Update openpype/hosts/nuke/api/lib.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2023-08-31 12:11:22 +02:00 committed by GitHub
parent 0935c75814
commit e9c3a84916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3371,10 +3371,9 @@ def create_viewer_profile_string(viewer, display=None, path_like=False):
Returns:
str: viewer config string
"""
if display:
if path_like:
return "{}/{}".format(display, viewer)
else:
return "{} ({})".format(viewer, display)
else:
if not display:
return viewer
if path_like:
return "{}/{}".format(display, viewer)
return "{} ({})".format(viewer, display)