Skip to content

Commit

Permalink
ref #44 -- more clever exclusion of ".files"
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobord committed Sep 16, 2016
1 parent 18aeaf0 commit bf0c0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
class Builder(object):

exceptions = (
'.tox', '.git', '.github', '.cache',
'build', 'static', 'templates', 'tests',
)

Expand All @@ -48,6 +47,7 @@ def git_version(self):
def dir_list(self):
dir_list = [d for d in os.listdir('.') if d not in self.exceptions]
dir_list = filter(lambda x: os.path.isdir(x), dir_list)
dir_list = filter(lambda x: not x.startswith('.'), dir_list)
return dir_list

def get_template(self, path):
Expand Down

0 comments on commit bf0c0cc

Please sign in to comment.