diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-10 15:10:09 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-03-09 13:05:08 -0400 |
commit | 528696300afd3236e173242e1e09d1ac80dfec81 (patch) | |
tree | f3989f6d6c49e188201719dd13468e10128a755d /docs/markdown/snippets | |
parent | 9c125a26dbf1b6ecc674df2bd1abc02ca48da2cd (diff) | |
download | meson-528696300afd3236e173242e1e09d1ac80dfec81.zip meson-528696300afd3236e173242e1e09d1ac80dfec81.tar.gz meson-528696300afd3236e173242e1e09d1ac80dfec81.tar.bz2 |
mesonlib: extract and optimize is_parent_path
Introduce an alternative to os.path.commonpath(name, path) == path,
which is a common idiom throughout Meson. Call it is_parent_path
just like the existing static method in Generator.
It is a bit faster and handles drives on Windows without the need
for an exception handler.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions