diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-10 08:49:13 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-10 08:49:13 +0100 |
| commit | fc29206c2bb3416e725de27cb5f594cb997639f5 (patch) | |
| tree | 800fdb9d9444591804b2d93ad17d12c5d6c0950d /examples/eval_expr.py | |
| parent | 8757ff9ae1d23499ed58ee8ea6f1fb578603d2c7 (diff) | |
eval_expr.py: s/syms["MODULES"]/modules/
Preferred method, should 'option modules' be properly supported later.
Diffstat (limited to 'examples/eval_expr.py')
| -rw-r--r-- | examples/eval_expr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/eval_expr.py b/examples/eval_expr.py index 36a7e6a..542c024 100644 --- a/examples/eval_expr.py +++ b/examples/eval_expr.py @@ -18,7 +18,7 @@ expr = sys.argv[2] kconf = kconfiglib.Kconfig(sys.argv[1]) # Enable modules so that m doesn't get demoted to n -kconf.syms["MODULES"].set_value(2) +kconf.modules.set_value(2) print("the expression '{}' evaluates to {}" .format(expr, kconf.eval_string(expr))) |
