From: Gedare Bloom Date: Thu, 23 Feb 2017 20:53:49 +0000 (-0500) Subject: util: generate fully qualified paths for cscope X-Git-Tag: v19.0.0.0~2776 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af7641a3e9d65ab11247c2182f38923186e0581b;p=gem5.git util: generate fully qualified paths for cscope Change-Id: I318c185b117b9608110544526fbaaa3fdcdeb8bc Signed-off-by: Gedare Bloom Reviewed-on: https://gem5-review.googlesource.com/3260 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- 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':