From 66058f3a3d4ac3b63861d8574be753eece44779e Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 6 Feb 2018 03:05:07 +0100 Subject: Consistently use 'kconf' instead of 'conf' The examples had some leftovers from Kconfiglib 1. --- examples/defconfig.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/defconfig.py') diff --git a/examples/defconfig.py b/examples/defconfig.py index 236db8d..cc3f12d 100644 --- a/examples/defconfig.py +++ b/examples/defconfig.py @@ -8,15 +8,15 @@ import kconfiglib import os import sys -conf = kconfiglib.Kconfig(sys.argv[1]) +kconf = kconfiglib.Kconfig(sys.argv[1]) if os.path.exists(".config"): print("using existing .config") - conf.load_config(".config") + kconf.load_config(".config") else: - if conf.defconfig_filename is not None: - print("using " + conf.defconfig_filename) - conf.load_config(conf.defconfig_filename) + if kconf.defconfig_filename is not None: + print("using " + kconf.defconfig_filename) + kconf.load_config(kconf.defconfig_filename) -conf.write_config(".config") +kconf.write_config(".config") print("configuration written to .config") -- cgit v1.2.3