""" Apps file for setting core package when app is ready
"""
import sys

from django.apps import AppConfig


class CurateAppConfig(AppConfig):
    """ Core application settings.
    """
    name = 'core_curate_app'

    def ready(self):
        """ Run when the app is ready.

        Returns:

        """
        if 'migrate' not in sys.argv:
            import core_curate_app.permissions.discover as discover
            discover.init_permissions()
