3.1.21.2.3. waf_tools.drawio.drawioToSvg
- class waf_tools.drawio.drawioToSvg(*k, **kw)
Bases:
TaskTask that converts a
.drawiodiagram file to SVG format.Executes the drawio-desktop CLI with
--export --outputon an input.drawiofile and writes the resulting SVG to the build directory.A task semaphore limits execution to one instance at a time to avoid conflicts on shared profile/disk cache resources.
- Environment variables used:
DRAWIO: Path to the drawio-desktop executable.
DRAWIO_EXTRA_OPTS: Additional CLI flags for headless export.
- exec_command(cmd: str | list[str], **kw) int
Execute the drawio-desktop command while silencing stdout in non-verbose mode.