[Buildroot] [PATCH 05/11] support/scripts/pkg-stats: parse and set developers info
Heiko Thiery
heiko.thiery at gmail.com
Sun Jan 5 21:49:56 UTC 2020
Am So., 5. Jan. 2020 um 20:18 Uhr schrieb Arnout Vandecappelle <arnout at mind.be>:
>
>
>
> On 03/01/2020 17:39, Thomas Petazzoni wrote:
> > One idea is to add ../../utils to the Python path used to search for
> > modules.
>
> The reverse would actually make more sense: move the libs to support/scripts
> (or support/python) and add that to the path of the stuff in utils.
>
> > I think it can be tweaked from inside a Python script. Not
> > sure if it's the nicest thing to do, though.
>
> import sys
> sys.path.extend(...)
I think with that the script can only be executed from a distinct
location. On the other hand this is already a hard requirement because
the search for packages is done from toplevel.
> I'm not sure though how it deals with relative paths.
>
> A much simpler approach is to move the python scripts entirely to
> support/scripts and symlink them from utils. That works.
With doing that with a symlink the above-mentioned could be avoided.
> Regards,
> Arnout
More information about the buildroot
mailing list