Commit ab69c26c authored by PJ Eby's avatar PJ Eby

Backport findall() fix fix from trunk.

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4056321
parent 78d1ac39
......@@ -69,7 +69,9 @@ def findall(dir = os.curdir):
"""
all_files = []
for base, dirs, files in os.walk(dir):
if base!=os.curdir:
if base==os.curdir or base.startswith(os.curdir+os.sep):
base = base[2:]
if base:
files = [os.path.join(base, f) for f in files]
all_files.extend(filter(os.path.isfile, files))
return all_files
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment