1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Ensure we ignore __pycache__ PEP 3174 dirs in a few more places.

This commit is contained in:
Ramiro Morales
2012-10-06 18:40:58 -03:00
parent 69035b0b1c
commit 2100da9dcd
5 changed files with 8 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ class TemplateCommand(BaseCommand):
os.mkdir(target_dir)
for dirname in dirs[:]:
if dirname.startswith('.'):
if dirname.startswith('.') or dirname == '__pycache__':
dirs.remove(dirname)
for filename in files: