from __future__ import unicode_literals
import os
import importlib

import six
import cherrypy

from sideboard._version import __version__
import sideboard.server

from sideboard.internal.imports import _discover_plugins
from sideboard.internal.logging import _configure_logging
import sideboard.run_mainloop

if 'SIDEBOARD_MODULE_TESTING' not in os.environ:
    _discover_plugins()
    _configure_logging()
