util: generate fully qualified paths for cscope
authorGedare Bloom <gedare@rtems.org>
Thu, 23 Feb 2017 20:53:49 +0000 (15:53 -0500)
committerGedare Bloom <gedare@rtems.org>
Wed, 24 May 2017 19:59:32 +0000 (19:59 +0000)
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>

util/cscope-index.py

index 1e653235f080a810c72a0b372fab2f2e422c1b16..a27c5ec3c4e51723ac8b2048a9481222a7a363dd 100755 (executable)
@@ -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':