summaryrefslogtreecommitdiff
path: root/util/cscope-index.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cscope-index.py')
-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':