diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-27 23:04:21 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-27 23:18:50 +0200 |
| commit | a11b6dcc63b396482421740fa9ee0f5242656718 (patch) | |
| tree | 2afadd3f2cad69ecaaeaefe653358a1b3e10d3a4 | |
| parent | b45c36ac3c088b3fa0643abca3cda77c544e47a3 (diff) | |
Rename Config._filename to Config._kconfig_filename
Mirrors Config._config_filename and makes it clearer which file each
variable refers to.
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 476653f..1c8543c 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -191,7 +191,7 @@ class Config(object): self._unset_re = re.compile(r"# {}(\w+) is not set" .format(self._config_prefix)) - self._filename = filename + self._kconfig_filename = filename # See Config.__init__(). We need this for get_defconfig_filename(). self._srctree = os.environ.get("srctree") @@ -259,7 +259,7 @@ class Config(object): def get_kconfig_filename(self): """Returns the name of the (base) kconfig file this configuration was loaded from.""" - return self._filename + return self._kconfig_filename def get_config_filename(self): """Returns the filename of the most recently loaded configuration file, @@ -583,7 +583,7 @@ class Config(object): """Returns a string containing various information about the Config.""" return _lines("Configuration", "File : " + - self._filename, + self._kconfig_filename, "Base directory : " + self._base_dir, "Value of $ARCH at creation time : " + |
