26 logger = logging.getLogger(__name__)
31 with open(os.environ[
"ROS_PYTHON_LOG_CONFIG_FILE"])
as config:
32 logging.config.dictConfig(yaml.safe_load(config))
36 return logging.getLogger()
40 logger.info(
" ".join(cmd))
41 if kwargs.pop(
"capture_output",
False):
42 kwargs[
"stdout"] = subprocess.PIPE
43 kwargs[
"stderr"] = subprocess.PIPE
44 return subprocess.run(cmd, *args, **kwargs)
def run_command(cmd, args, kwargs)