summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/loader/kconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/loader/kconfig.py b/lib/loader/kconfig.py
index 2c274cf..80bdd21 100644
--- a/lib/loader/kconfig.py
+++ b/lib/loader/kconfig.py
@@ -24,6 +24,9 @@ class KConfigAttributes:
self.kconfig_root = "/".join(kconfig_path.split("/")[:-1])
kconfig_file = kconfig_path.split("/")[-1]
+ if self.kconfig_root == "":
+ self.kconfig_root = "."
+
with cd(self.kconfig_root):
kconf = kconfiglib.Kconfig(kconfig_file)
self.kconf = kconf