diff --git a/util/cscope-index.py b/util/cscope-index.py index 1e653235f0..a27c5ec3c4 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':