You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/book/examples/nodes_tree/wscript

22 lines
414 B
Python

#! /usr/bin/env python
"""
This example illustrates how to navigate in the node tree
Try:
$ waf configure dosomething
"""
top = '.'
out = 'build'
def configure(ctx):
pass
def dosomething(ctx):
print(ctx.path.abspath())
print(ctx.root.abspath())
print("ctx.path contents %r" % (ctx.path.children))
print("ctx.path parent %r" % ctx.path.parent.abspath())
print("ctx.root parent %r" % ctx.root.parent)