Commit ef93095a authored by Greg Ward's avatar Greg Ward

Filter 'glob()' results so we only look at regular files.

parent 3c6204a8
......@@ -220,7 +220,7 @@ class Dist (Command):
optional = ['test/test*.py']
for pattern in optional:
files = glob (pattern)
files = filter (os.path.isfile, glob (pattern))
if files:
self.files.extend (files)
......@@ -338,7 +338,7 @@ class Dist (Command):
# Single word, no bang: it's a "simple include pattern"
elif not exclude:
matches = glob (pattern)
matches = filter (os.path.isfile, glob (pattern))
if matches:
self.files.extend (matches)
else:
......
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