This is needed now that str.format() is not allowing it any more. It is also more consistent with other objects that have that method as well, such as build targets. Fixes: #12406pull/11191/merge
parent
7f5f432ec9
commit
85e4ee5b54
4 changed files with 34 additions and 2 deletions
@ -0,0 +1,7 @@ |
||||
## File object now has `full_path()` method |
||||
|
||||
Returns a full path pointing to the file. This is useful for printing the path |
||||
with e.g [[message]] function for debugging purpose. |
||||
|
||||
**NOTE:** In most cases using the object itself will do the same job |
||||
as this and will also allow Meson to setup dependencies correctly. |
@ -1,3 +1,13 @@ |
||||
name: file |
||||
long_name: File |
||||
description: Opaque object that stores the path to an existing file |
||||
description: Object that stores the path to an existing file |
||||
|
||||
methods: |
||||
- name: full_path |
||||
returns: str |
||||
since: 1.4.0 |
||||
description: | |
||||
Returns a full path pointing to the file. This is useful for printing the |
||||
path with e.g [[message]] function for debugging purpose. |
||||
**NOTE:** In most cases using the object itself will do the same job |
||||
as this and will also allow Meson to setup dependencies correctly. |
||||
|
Loading…
Reference in new issue