do not package .gitignore into pypi package (fixes #255)

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-01-14 11:35:24 +01:00
parent 3c0790f080
commit 746d9ec12b

View file

@ -5,6 +5,11 @@ import os
def data_finder(data_dir):
entries = []
for name in os.listdir(data_dir):
# Skip .gitignore files
if name == ".gitignore":
continue
entry = os.path.join(data_dir, name)
if os.path.isdir(entry):
entries.extend(data_finder(entry))