def get_mysql_cfg():
    """
    Get the appropriate MySQL configuration
    """
    environment = get_project_configuration()['environment']
    cfg = get_database_configuration()
    if environment == 'production':
        mysql = cfg['mysql_online']
    else:
        mysql = cfg['mysql_dev']
    return mysql
def get_mysql_cfg ( ) : environment = get_project_configuration ( ) [ 'environment' ] cfg = get_database_configuration ( ) if environment == 'production' : mysql = cfg [ 'mysql_online' ] else : mysql = cfg [ 'mysql_dev' ] return mysql
Get the appropriate MySQL configuration