Skip to content

Commit b3502d1

Browse files
committed
Add new topo_tree_dump.py
This is useful for quickly searching for something in topologies. Also a good starting point.
1 parent 3fa4a18 commit b3502d1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

tools/topo_tree_dump.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
3+
"""
4+
Do not make this script longer or more complicated. Use it as starting
5+
point if needed.
6+
7+
Pro tip: try these commands _interactively_ from `ipython3`
8+
"""
9+
10+
import sys
11+
import tplgtool2
12+
13+
tplgFormat = tplgtool2.TplgBinaryFormat()
14+
15+
parsedTplg = tplgFormat.parse_file(sys.argv[1])
16+
17+
print(parsedTplg)

0 commit comments

Comments
 (0)