diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-11 22:26:23 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-04-11 22:26:23 +0200 |
| commit | 8ddc0df484a25f915591c5bee6f4a9e4e71207d5 (patch) | |
| tree | d0c7ac039ead2fed33fa4193b4f5d46708718bd7 | |
| parent | 549df9b11914aab686d1886db6c95a657b95ae65 (diff) | |
menuconfig: Simplify _menu_path_info()
| -rwxr-xr-x | menuconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/menuconfig.py b/menuconfig.py index e2120a1..1c5e4b2 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -2731,14 +2731,14 @@ def _menu_path_info(node): path = "" - node = node.parent - while node is not _kconf.top_node: + while node.parent is not _kconf.top_node: + node = node.parent + # Promptless choices might appear among the parents. Use # standard_sc_expr_str() for them, so that they show up as # '<choice (name if any)>'. path = " -> " + (node.prompt[0] if node.prompt else standard_sc_expr_str(node.item)) + path - node = node.parent return "(top menu)" + path |
