From e13fb230f2d711ab494e56ef65e6871f1fe3a4a7 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 19 May 2021 14:40:14 +0200 Subject: [PATCH] use AVALON_APP to get host name if is available --- openpype/plugins/publish/collect_anatomy_context_data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpype/plugins/publish/collect_anatomy_context_data.py b/openpype/plugins/publish/collect_anatomy_context_data.py index 5b955a0592..5c4bc6cb75 100644 --- a/openpype/plugins/publish/collect_anatomy_context_data.py +++ b/openpype/plugins/publish/collect_anatomy_context_data.py @@ -71,6 +71,10 @@ class CollectAnatomyContextData(pyblish.api.ContextPlugin): app = app_manager.applications.get(app_name) if app: context_data["app"] = app.host_name + # Use AVALON_APP as first if available it is the same as host name + # - only if is not defined use AVALON_APP_NAME (e.g. on Farm) and + # set it back to AVALON_APP env variable + host_name = os.environ.get("AVALON_APP") datetime_data = context.data.get("datetimeData") or {} context_data.update(datetime_data)