mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix string format for python2
This commit is contained in:
parent
bd7243f8aa
commit
08e04911b3
1 changed files with 5 additions and 3 deletions
|
|
@ -36,7 +36,8 @@ class GizmoMenu():
|
|||
try:
|
||||
icon = icon.format(**os.environ)
|
||||
except KeyError as e:
|
||||
log.warning(f"This environment variable doesn't exist: {e}'")
|
||||
log.warning("This environment variable doesn't exist: "
|
||||
"{}".format(e))
|
||||
|
||||
hotkey = config.get('hotkey', None)
|
||||
|
||||
|
|
@ -62,7 +63,8 @@ class GizmoMenu():
|
|||
try:
|
||||
icon = icon.format(**os.environ)
|
||||
except KeyError as e:
|
||||
log.warning(f"This environment variable doesn't exist: {e}'")
|
||||
log.warning("This environment variable doesn't exist: "
|
||||
"{}".format(e))
|
||||
menu = parent.addMenu(item['title'], icon=icon)
|
||||
self.build_from_configuration(menu, item["items"])
|
||||
|
||||
|
|
@ -74,4 +76,4 @@ class GizmoMenu():
|
|||
nuke.pluginAddPath(os.path.join(gizmo_path, folder))
|
||||
nuke.pluginAddPath(gizmo_path)
|
||||
else:
|
||||
log.warning(f"This path doesn't exist: {gizmo_path}")
|
||||
log.warning("This path doesn't exist: {}".format(gizmo_path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue