From d32bf44a0f7b5c338eaaed5703df011f92d6a8bf Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Wed, 17 Nov 2021 17:18:22 +0100 Subject: [PATCH] make sure render metadta.json path always starts with / onlinux --- openpype/hosts/maya/plugins/publish/collect_render.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openpype/hosts/maya/plugins/publish/collect_render.py b/openpype/hosts/maya/plugins/publish/collect_render.py index d2f277329a..3228151ff7 100644 --- a/openpype/hosts/maya/plugins/publish/collect_render.py +++ b/openpype/hosts/maya/plugins/publish/collect_render.py @@ -41,6 +41,7 @@ Provides: import re import os +import platform import json from maya import cmds @@ -255,6 +256,11 @@ class CollectMayaRender(pyblish.api.ContextPlugin): common_publish_meta_path, part) if part == expected_layer_name: break + + # TODO: replace this terrible linux hotfix with real solution :) + if platform.system() == "Linux": + common_publish_meta_path = "/" + common_publish_meta_path + self.log.info( "Publish meta path: {}".format(common_publish_meta_path))