"""This script is executed on startup by mod_wsgi to get the Flask application.

AUTHOR        :  Brian Ha (summer intern)
MENTOR        :  Gene Massion
MBARI TEAM    :  Chemical Sensor Group
PROJECT       :  Coastal Profiling Floats (CPF)
DATE CREATED  :  2018-07-29
LAST REVISION :  2018-07-31
"""

# Script
# =============================================================================

# This code is necessary for a Python virtual environment to work with mod_wsgi
activate_this = '/usr/lib/python3.6/cpf_mcs/bin/activate_this.py'
with open(activate_this) as file_:
    exec(file_.read(), dict(__file__=activate_this))

	
# This gets the underlying Flask application from the CPF MCS GUI Dash app. 
from gui.index import server as application