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: 8aa02271fd
("Add Python bindings")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
This commit is contained in:
parent
5efb6c8e2a
commit
9f00e78bf5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue