Lines Matching +full:stdout +full:- +full:path
1 # coding=utf-8
2 # SPDX-License-Identifier: GPL-2.0
5 kernel-feat
8 Implementation of the ``kernel-feat`` reST-directive.
11 :copyright: Copyright (C) 2016-2019 Mauro Carvalho Chehab
12 :maintained-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
15 The ``kernel-feat`` (:py:class:`KernelFeat`) directive calls the
20 .. code-block:: rst
22 .. kernel-feat:: <ABI directory location>
29 Inserts a code-block with the *raw* reST. Sometimes it is helpful to see
39 from os import path
51 app.add_directive("kernel-feat", KernelFeat)
60 u"""KernelFeat (``kernel-feat``) directive"""
74 message = ("%(fname)s:%(line_no)s: [kernel-feat WARN] : " + message) % replace
84 cwd = path.dirname(doc.current_source)
85 cmd = "get_feat.pl rest --dir "
89 cmd += " --arch " + self.arguments[1]
91 srctree = path.abspath(os.environ["srctree"])
95 # extend PATH with $(srctree)/scripts
98 os.environ["PATH"]
101 shell_env["PATH"] = path_env
109 u"""Run command ``cmd`` and return it's stdout as unicode."""
114 , stdout = subprocess.PIPE
120 out, err = codecs.decode(out, 'utf-8'), codecs.decode(err, 'utf-8')
137 code_block = "\n\n.. code-block:: rst\n :linenos:\n"