Skip to content

Commit

Permalink
[#385] Update paster cmd to not minify vendor dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnglover committed Feb 13, 2013
1 parent 27268da commit 53b0ebc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/lib/cli.py
Expand Up @@ -1757,13 +1757,16 @@ class MinifyCommand(CkanCommand):
usage = __doc__
min_args = 1

exclude_dirs = ['vendor']

def command(self):
self._load_config()
for base_path in self.args:
if os.path.isfile(base_path):
self.minify_file(base_path)
elif os.path.isdir(base_path):
for root, dirs, files in os.walk(base_path):
dirs[:] = [d for d in dirs if not d in self.exclude_dirs]
for filename in files:
path = os.path.join(root, filename)
self.minify_file(path)
Expand Down

0 comments on commit 53b0ebc

Please sign in to comment.