is_root_schematic
Check if a schematic is the root or a sub-sheet.
Instructions
Check if a schematic is the root or a sub-sheet.
A sheet is found in its project wherever its file sits below the project's
folder. A file that no sheet of its project uses is a root. For a sub-sheet,
root_path is the top-level sheet of its project that holds it.
Args:
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_root | Yes | ||
| root_path | Yes |