#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
application factory
~~~~~~~~~~~~~~~~~~~

Create and initialize the application using a configuration specified by
an environment variable.

:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""

from .application import create_app, init_app
from .util.system import get_config_env_name_from_env


environment = get_config_env_name_from_env(default='development')

app = create_app(environment)
init_app(app)

# -*- coding: utf-8 -*-

"""
application factory
~~~~~~~~~~~~~~~~~~~

Create and initialize the application using a configuration specified by
an environment variable.

:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""

from .application import create_app, init_app
from .util.system import get_config_env_name_from_env


environment = get_config_env_name_from_env(default='development')

app = create_app(environment)
init_app(app)

Remove unnecessary shebang line from module
Remove unnecessary shebang line from module
