Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1422393 > unrolled thread

[PATCH 3/4] coccicheck: enable use of the kernel's python library

Started by"Luis R. Rodriguez" <mcgrof@kernel.org>
First post2016-06-15 00:20 +0200
Last post2016-06-15 17:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] coccicheck: enable use of the kernel's python library "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-15 00:20 +0200
    Re: [PATCH 3/4] coccicheck: enable use of the kernel's python library Michal Marek <mmarek@suse.com> - 2016-06-15 10:00 +0200
      Re: [PATCH 3/4] coccicheck: enable use of the kernel's python library "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-15 17:50 +0200

#1422393 — [PATCH 3/4] coccicheck: enable use of the kernel's python library

From"Luis R. Rodriguez" <mcgrof@kernel.org>
Date2016-06-15 00:20 +0200
Subject[PATCH 3/4] coccicheck: enable use of the kernel's python library
Message-ID<rK4QG-2oZ-21@gated-at.bofh.it>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
 scripts/coccicheck | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index ba7301ab0a3d..a4d91d649ad9 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -12,6 +12,8 @@
 
 DIR=$(dirname $(readlink -f $0))
 DIR="${DIR}/../"
+export PYTHONPATH=${DIR}/scripts/
+
 SPATCH="`which ${SPATCH:=spatch}`"
 
 if [ ! -x "$SPATCH" ]; then
-- 
2.8.2

[toc] | [next] | [standalone]


#1422754

FromMichal Marek <mmarek@suse.com>
Date2016-06-15 10:00 +0200
Message-ID<rKdTY-88q-13@gated-at.bofh.it>
In reply to#1422393
On 2016-06-15 00:10, Luis R. Rodriguez wrote:
> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
> ---
>  scripts/coccicheck | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/scripts/coccicheck b/scripts/coccicheck
> index ba7301ab0a3d..a4d91d649ad9 100755
> --- a/scripts/coccicheck
> +++ b/scripts/coccicheck
> @@ -12,6 +12,8 @@
>  
>  DIR=$(dirname $(readlink -f $0))
>  DIR="${DIR}/../"
> +export PYTHONPATH=${DIR}/scripts/

The first assignment to DIR already sets the desired path.

Michal

[toc] | [prev] | [next] | [standalone]


#1423166

From"Luis R. Rodriguez" <mcgrof@kernel.org>
Date2016-06-15 17:50 +0200
Message-ID<rKleO-4pE-39@gated-at.bofh.it>
In reply to#1422754
On Wed, Jun 15, 2016 at 09:51:31AM +0200, Michal Marek wrote:
> On 2016-06-15 00:10, Luis R. Rodriguez wrote:
> > Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
> > ---
> >  scripts/coccicheck | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/scripts/coccicheck b/scripts/coccicheck
> > index ba7301ab0a3d..a4d91d649ad9 100755
> > --- a/scripts/coccicheck
> > +++ b/scripts/coccicheck
> > @@ -12,6 +12,8 @@
> >  
> >  DIR=$(dirname $(readlink -f $0))
> >  DIR="${DIR}/../"
> > +export PYTHONPATH=${DIR}/scripts/
> 
> The first assignment to DIR already sets the desired path.

Ah yes, thanks. Fixed.

  Luis

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web