From 7883af3097e043dd5b0f2c6f5f37189d9f70549e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 11 May 2015 16:17:01 +0300 Subject: devtool: add missing docstrings (From OE-Core rev: 07b2e731a378c56852e2715f6c001097b81abe46) Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- scripts/lib/devtool/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/lib/devtool/__init__.py') diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index f19d0328f3..88665124d1 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - +"""Devtool plugins module""" import os import sys @@ -26,6 +26,7 @@ import logging logger = logging.getLogger('devtool') def exec_build_env_command(init_path, builddir, cmd, watch=False, **options): + """Run a program in bitbake build context""" import bb if not 'cwd' in options: options["cwd"] = builddir @@ -49,6 +50,7 @@ def exec_build_env_command(init_path, builddir, cmd, watch=False, **options): return bb.process.run('%s%s' % (init_prefix, cmd), **options) def exec_watch(cmd, **options): + """Run program with stdout shown on sys.stdout""" if isinstance(cmd, basestring) and not "shell" in options: options["shell"] = True @@ -68,6 +70,7 @@ def exec_watch(cmd, **options): return buf def setup_tinfoil(): + """Initialize tinfoil api from bitbake""" import scriptpath bitbakepath = scriptpath.add_bitbake_lib_path() if not bitbakepath: -- cgit v1.2.3-54-g00ecf