diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 17:01:09 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 17:01:29 +0100 |
| commit | c805e3143bada2df897927996ae23a469cf83eb3 (patch) | |
| tree | 38212ced8df505ee2814ac5b8d29460f0fa5e98b /examples/eval_expr.py | |
| parent | 94fb111d02b95413f7c36d923dabd4ec1ca1c90e (diff) | |
Move examples into separate directory.
Diffstat (limited to 'examples/eval_expr.py')
| -rw-r--r-- | examples/eval_expr.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/eval_expr.py b/examples/eval_expr.py new file mode 100644 index 0000000..f8e0f65 --- /dev/null +++ b/examples/eval_expr.py @@ -0,0 +1,8 @@ +# Evaluates an expression in the context of a configuration. (Here we could +# load a .config as well.) + +import kconfiglib +import sys + +conf = kconfiglib.Config(sys.argv[1]) +print conf.eval("(TRACE_IRQFLAGS_SUPPORT || PPC32) && STACKTRACE_SUPPORT") |
