summaryrefslogtreecommitdiff
path: root/examples/print_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/print_tree.py')
-rw-r--r--examples/print_tree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/print_tree.py b/examples/print_tree.py
index cd23f68..66b3a81 100644
--- a/examples/print_tree.py
+++ b/examples/print_tree.py
@@ -49,6 +49,7 @@ from kconfiglib import Kconfig, Symbol, Choice, MENU, COMMENT
def indent_print(s, indent):
print(" "*indent + s)
+
def print_items(node, indent):
while node:
if isinstance(node.item, Symbol):
@@ -69,5 +70,6 @@ def print_items(node, indent):
node = node.next
+
kconf = Kconfig(sys.argv[1])
print_items(kconf.top_node, 0)