bluez_src_dir#
- pytest_bluezenv.bluez_src_dir()[source]#
Location of the BlueZ source tree, as given by
--bluez-src-dir.Use it to reach files that are not executables, such as the
bluetoothctlinit scripts inclient/scripts.- Returns:
source tree location, or None if the option was not given.
- Return type:
pathlib.Path | None
- Raises:
FileNotFoundError – the configured source tree does not exist.
Example
from pytest_bluezenv import bluez_src_dir def script(name): return bluez_src_dir() / "client" / "scripts" / name