From 2e6dd5a6ae046e99718423605b36d17044b383f4 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 16 Jul 2018 11:03:53 +0200 Subject: Fix outdated _T_*SOURCE comment source statements now always look relative to $srctree. --- kconfiglib.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 7c94841..f50dede 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2203,13 +2203,9 @@ class Kconfig(object): for filename in filenames: if not isabs: - # Strip the $srctree prefix from the filename and let - # the normal $srctree logic find the file. This makes - # the globbed filenames appear without a $srctree - # prefix in MenuNode.filename, which is consistent with - # how 'source' and 'rsource' work. We get the same - # behavior as if the files had been 'source'd one by - # one. + # Strip the $srctree prefix from the filename, so that + # it appears without a $srctree prefix in + # MenuNode.filename filename = os.path.relpath(filename, self.srctree) self._enter_file(filename) -- cgit v1.2.3