From e9a181a5459ed1204b6250e16d2fdd291816c67a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 9 May 2018 18:30:00 +0530 Subject: [PATCH] docs: Add a warning about find_program().path() See: https://github.com/mesonbuild/meson/issues/3552 --- docs/markdown/Reference-manual.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 316c0b5b7..2498b9899 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1888,9 +1888,9 @@ and has the following methods: - `found()` which returns whether the executable was found -- `path()` which returns an array pointing to the executable (this is - an array as opposed to a string because the program might be - `['python', 'foo.py']`, for example) +- `path()` which returns a string pointing to the script or executable + **NOTE:** You should not need to use this method. Passing the object + itself should work in all cases. F.ex.: `run_command(obj, arg1, arg2)` ### `environment` object