status-desktop/test/e2e/driver/objects_access.py

13 lines
248 B
Python
Raw Normal View History

import logging
import object
LOG = logging.getLogger(__name__)
def walk_children(parent, depth: int = 1000):
for child in object.children(parent):
yield child
if depth:
yield from walk_children(child, depth - 1)