()
return active_checks
Check for config files to guess whether a check env is active
Check for config files to guess whether a check env is active
Check for config files to guess whether a check env is active
def get_active_checks():
    """Check for config files to guess whether a check env is active"""
    checks = get_configured_checks()
    active_checks = []

    root_dir = path_join(ENV_DIR)
    for c in checks:
        check_dir = path_join(root_dir, c)
        if os.path.isdir(check_dir) and os.listdir(check_dir):
            active_checks.append(c)
    return active_checks
def get_active_checks ( ) : checks = get_configured_checks ( ) active_checks = [ ] root_dir = path_join ( ENV_DIR ) for c in checks : check_dir = path_join ( root_dir , c ) if os . path . isdir ( check_dir ) and os . listdir ( check_dir ) : active_checks . append ( c ) return active_checks