-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #12406
- Loading branch information
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.3.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters