diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-20 00:42:13 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-02-03 20:01:37 -0500 |
| commit | ab5e67a57c62c80c16e4d9c71740b01b424a6f30 (patch) | |
| tree | 6172233840e58e72b71aafc32dddbd2826dd338c /mesonbuild/dependencies/python.py | |
| parent | b825faebaf81937aa929468a354a5490b345cdbd (diff) | |
| download | meson-ab5e67a57c62c80c16e4d9c71740b01b424a6f30.tar.gz | |
ninjabackend: rust: fix incorrect use of abspath
os.path.abspath of the target subdir is not guaranteed to give a sensible
answer; depending on what directory you run meson from, it could build
an absolute path relative the source directory or the build directory
or possibly neither one. In fact, using os.path.abspath is quite rare
in Meson's code and generally only done in code like
subdir = os.path.abspath(os.path.join(self.sourcedir, target['subdir']))
or
ndir1 = os.path.abspath(os.path.realpath(dir1))
While at it, don't use getattr unnecessarily, the cratetype is available.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/dependencies/python.py')
0 files changed, 0 insertions, 0 deletions
