Commits

Anonymous committed 2304d2b

Ensuring the module is actually a directory before adding to migrations.

  • Participants
  • Parent commits dbae51a

Comments (0)

Files changed (1)

south/migration.py

 
             # if its a folder, and doesn't have an __init__.py file
             if os.path.splitext(filename)[1] is "" \
+                and os.path.isdir(filename) \
                 and "__init__.py" not in os.listdir(os.path.join(os.path.dirname(app.__file__), filename)):
                 continue