import importlib


def get_suite_environments(workspace, project, suite):
    """Get the environments defined in a suite."""
    environments = []
    module_name = 'projects.{0}.suites.{1}'.format(project, suite)
    suite_module = importlib.import_module(module_name, package=None)
    if hasattr(suite_module, 'environments'):
        environments = suite_module.environments

    return environments