summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 1a1d629..cee793e 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4505,9 +4505,7 @@ def standard_config_filename():
.config file to load/save) if it is set, and ".config" otherwise.
"""
config_filename = os.environ.get("KCONFIG_CONFIG")
- if config_filename is not None:
- return config_filename
- return ".config"
+ return config_filename if config_filename is not None else ".config"
#
# Internal functions