diff -r 3eaa6b94ec68 -r e06b37cce80d common/tools/listdir.py --- a/common/tools/listdir.py Tue Apr 13 16:49:42 2010 +0100 +++ b/common/tools/listdir.py Tue Apr 13 17:54:56 2010 +0100 @@ -26,9 +26,9 @@ if(len(sys.argv)>2): x_dirs = string.lower(sys.argv[2]) exclude_dirs = re.split(',', x_dirs) - scandir(directory, exclude_dirs) + scandir(directory, exclude_dirs,directory) -def scandir(top, exclude_dirs): +def scandir(top, exclude_dirs,directory): fixpath = re.compile('\\\\') fixroot = re.compile('^%s\\\\' % top) for root, dirs, files in os.walk(top, topdown=True): @@ -38,6 +38,6 @@ for name in files: filename = os.path.join(root, name) fn = string.lower(fixpath.sub('/',fixroot.sub('',filename))) - print fn + print fn.strip(directory) main()