title: Maya to deadline job submission python command
body: <p>I am trying to send maya renders to render farm by <a href="http://deadline.thinkboxsoftware.com/" rel="nofollow">Deadline Software</a>.</p>
  
  <h1>Python Command for Manual Job Submission Maya to deadline.</h1>
  
  <pre><code>import sys
  import subprocess
  import maya.cmds as cmds
  
  deadline = "C:\\Program Files\\Thinkbox\\Deadline\\bin\\deadlinecommand.exe"
  maya_exe = "C:\\Program Files\\Autodesk\\Maya2015\\bin\\render.exe"
  
  file_path = cmds.file(q=True, location=True)
  
  command = '%s ' \
            '-SubmitCommandLineJob ' \
            '-executable "%s" ' \
            '-name "File Name" ' \
            '"%s" ' % (deadline, maya_exe, file_path)
  process = subprocess.Popen(command, stdout=subprocess.PIPE)
  lines_iterator = iter(process.stdout.readline, b"")
  for line in lines_iterator:
      print(line)
      sys.stdout.flush()
  </code></pre>
  
  <p>any python ways to add maya renders to deadline..?</p>