[OE-core] [PATCH 2/9] icecc: Remove output on stderr when calling which
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Tue Nov 12 11:04:47 UTC 2013
Tobias Henkel <tobias.henkel-Y0tyK2LzuKvpgbXj0Ix11Q at public.gmane.org>
writes:
> - return d.getVar('ICECC_PATH') or os.popen("which icecc").read()[:-1]
> + return d.getVar('ICECC_PATH') or os.popen("which icecc 2> /dev/null").read()[:-1]
~~~~~~~~~~~~~~~~~~~~~~
I think, this can/should be replaced by
bb.utils.which(os.getenv("PATH"), "icecc")
Ditto the other locations.
Enrico
More information about the Openembedded-core
mailing list