rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.utils.cmd Namespace Reference

Functions

def run (cmds, returnOutput=True, **kwargs)
 

Function Documentation

◆ run()

def rfm2.utils.cmd.run (   cmds,
  returnOutput = True,
**  kwargs 
)
Execute an external command via subprocess.

Arguments:
    cmds {str} -- the command string

Keyword Arguments:
    returnOutput {bool} -- block until done and return (stdout, stderr) (default: {True})
    kwargs {dict} -- extra keyword arguments to subprocess.Popen()

Returns:
    tuple -- (stdout, stderr) if returnOutput is true