mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added multiplatform pype command support
This commit is contained in:
parent
5c9e9164a4
commit
900e32eb5d
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue