From 900e32eb5d0e1ce023134d8ff6ef4ae7978a40dd Mon Sep 17 00:00:00 2001 From: antirotor Date: Wed, 22 May 2019 18:56:18 +0200 Subject: [PATCH] added multiplatform pype command support --- pype/plugins/maya/publish/submit_maya_muster.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pype/plugins/maya/publish/submit_maya_muster.py b/pype/plugins/maya/publish/submit_maya_muster.py index 74f528dd93..18047cc88a 100644 --- a/pype/plugins/maya/publish/submit_maya_muster.py +++ b/pype/plugins/maya/publish/submit_maya_muster.py @@ -6,6 +6,7 @@ from avalon.vendor import requests import pyblish.api import pype.maya.lib as lib import appdirs +import platform from pypeapp.lib.config import get_presets @@ -260,7 +261,11 @@ class MayaSubmitMuster(pyblish.api.InstancePlugin): ext=render_variables["ext"]) # TODO: set correct path - postjob_command = "{} --publish" + pype_command = "pype.bat" + if platform.system().lower() == "linux": + pype_command = "pype" + postjob_command = "{} --publish".format( + os.path.join(os.environ.get('PYPE_ROOT'), pype_command)) try: # Ensure render folder exists