include#
- include(file: str, *, when: str | dict[str, str] | None = None) None#
Include the contents of
fileat the point where the directive appears.Usage#
.pyt:NA.vvt:#VVT: include (options=..., platforms=...) : file #VVT: insert directive file (options=..., platforms=...) : file
Parameters#
file: The file to includewhen: Restrict processing of the directive to this condition
The
whenexpression is limited to the following conditions:platforms: Restrict processing of the directive to certain platform or platformsoptions: Restrict processing of the directive to command line-ooptions
Notes#
included files canincludeother filesIf
fileis a relative path, it is assumed relative to the fileincluding itThe alias
insert directive fileis also recognized
Examples#
# VVT: include : file.txtwill include directives from
file.txtinto the current test.