diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-16 11:03:53 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-16 11:07:35 +0200 |
| commit | 2e6dd5a6ae046e99718423605b36d17044b383f4 (patch) | |
| tree | bb32a5affc22d67a6ad2a58fe7e7608c462fbaaa | |
| parent | 451c00639f422d7d74635251cede1b9d2e577aa3 (diff) | |
Fix outdated _T_*SOURCE comment
source statements now always look relative to $srctree.
| -rw-r--r-- | kconfiglib.py | 10 |
1 files 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) |
