mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
scripts: Add support for path as argument of qom-tree
Add processing of optional argument path as "tree base". Signed-off-by: Martin Cerveny <M.Cerveny@computer.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
53f77e4562
commit
ff5397bc72
@ -65,6 +65,11 @@ def list_node(path):
|
||||
print ''
|
||||
for item in items:
|
||||
if item['type'].startswith('child<'):
|
||||
list_node(path + '/' + item['name'])
|
||||
list_node((path if (path != '/') else '') + '/' + item['name'])
|
||||
|
||||
list_node('/machine')
|
||||
if len(args) == 0:
|
||||
path = '/'
|
||||
else:
|
||||
path = args[0]
|
||||
|
||||
list_node(path)
|
||||
|
Loading…
Reference in New Issue
Block a user