From af7641a3e9d65ab11247c2182f38923186e0581b Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 23 Feb 2017 15:53:49 -0500 Subject: [PATCH] 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 --- util/cscope-index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': -- 2.30.2