make sure render metadta.json path always starts with / onlinux

This commit is contained in:
Milan Kolar 2021-11-17 17:18:22 +01:00
parent e8d18aa3a8
commit d32bf44a0f

View file

@ -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))