mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
added docstring
This commit is contained in:
parent
ae905c0e57
commit
cb2ca581e1
1 changed files with 17 additions and 0 deletions
17
pype/lib.py
17
pype/lib.py
|
|
@ -82,6 +82,23 @@ def get_ffmpeg_tool_path(tool="ffmpeg"):
|
|||
|
||||
# Special naming case for subprocess since its a built-in method.
|
||||
def _subprocess(*args, logger=None, **kwargs):
|
||||
"""Convenience method for getting output errors for subprocess.
|
||||
|
||||
Entered arguments and keyword arguments are passed to subprocess Popen.
|
||||
|
||||
Args:
|
||||
logger (logging.Logger): Logger object if want to use different than
|
||||
lib's logger.
|
||||
*args: Variable length arument list passed to Popen.
|
||||
**kwargs : Arbitary keyword arguments passed to Popen.
|
||||
|
||||
Returns:
|
||||
str: Full output of subprocess concatenated stdout and stderr.
|
||||
|
||||
Raises:
|
||||
RuntimeError: Exception is raised if process finished with nonzero
|
||||
return code.
|
||||
"""
|
||||
|
||||
# Get environents from kwarg or use current process environments if were
|
||||
# not passed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue