> On 5 Feb 2025, at 15:05, Quentin Schulz via lists.openembedded.org 
> <[email protected]> wrote:
> +if subprocess.call(["which", "lsdiff"], stdout=subprocess.DEVNULL) != 0:

“which” isn’t actually a standard tool, so I’d use shutil.which() instead: 
guaranteed to work and no need to spawn.

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#210864): 
https://lists.openembedded.org/g/openembedded-core/message/210864
Mute This Topic: https://lists.openembedded.org/mt/111013377/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to