From 9f00e78bf5a6b311c6d0e72b7c79f793863ea942 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 17 May 2022 20:13:14 +0300 Subject: py: Fix link generation to __init__.py The command to create a symlink to the __init__.py file in the source directory uses a relative path from the build directory, which hardcodes the assumption that the build directory is a direct child of the source directory. This isn't always true. Fix it by using the files() function. Fixes: 8aa02271fd71 ("Add Python bindings") Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Tomi Valkeinen --- src/py/libcamera/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/py') diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build index 0cd7c75b..2fc2eaec 100644 --- a/src/py/libcamera/meson.build +++ b/src/py/libcamera/meson.build @@ -54,7 +54,7 @@ pycamera = shared_module('_libcamera', dependencies : pycamera_deps, cpp_args : pycamera_args) -run_command('ln', '-fsT', '../../../../src/py/libcamera/__init__.py', +run_command('ln', '-fsT', files('__init__.py'), meson.current_build_dir() / '__init__.py', check: true) -- cgit v1.2.1