Don't ignore any directories after all

This commit is contained in:
Tom Willemsen 2011-11-05 13:06:58 +01:00
parent 528737be80
commit 39f711d813

View file

@ -5,14 +5,11 @@ from django.core.management.base import BaseCommand, CommandError
from settings import MARKDOWN_PATH, DEPLOY_PATH
ignore_dir = '.git'
class Command(BaseCommand):
help = 'Parse markdown files in %s' % MARKDOWN_PATH
def handle(self, *args, **options):
for root, dirs, files in os.walk(MARKDOWN_PATH):
if ignore_dir not in root:
for file in files:
subdir = root.replace(MARKDOWN_PATH, "")
mdfile = '%s/%s' % (root, file)