summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-02-23 15:53:49 -0500
committerGedare Bloom <gedare@rtems.org>2017-05-24 19:59:32 +0000
commitaf7641a3e9d65ab11247c2182f38923186e0581b (patch)
tree86280eecd9d0948a110b21a4e46e8041182745bd /util
parent3f835d88a337c74869393b76ef3c398c324754cc (diff)
downloadgem5-af7641a3e9d65ab11247c2182f38923186e0581b.tar.xz
util: generate fully qualified paths for cscope
Change-Id: I318c185b117b9608110544526fbaaa3fdcdeb8bc Signed-off-by: Gedare Bloom <gedare@rtems.org> Reviewed-on: https://gem5-review.googlesource.com/3260 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cscope-index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cscope-index.py b/util/cscope-index.py
index 1e653235f..a27c5ec3c 100755
--- a/util/cscope-index.py
+++ b/util/cscope-index.py
@@ -46,8 +46,9 @@ def oksuffix(f):
return False
file_list = file('cscope.files', 'w')
+cwd = os.getcwd()
-for dirpath,subdirs,files in os.walk('src'):
+for dirpath,subdirs,files in os.walk(os.path.join(cwd, 'src')):
# filter out undesirable subdirectories
for i,dir in enumerate(subdirs):
if dir == 'SCCS':