import gevent
import gevent.monkey
import gevent.socket
gevent.monkey.patch_all()

import subprocess
import fcntl
import os
import errno
import sys
import urllib
import distutils.spawn

import gevent.queue
import gevent.event
import ujson

import flask
import flask.ext.login

import chef

import logging

app = flask.Flask('chefdash')

app.config.update(
	DEBUG = True,
	SECRET_KEY = 'dev',
	LOG_FILE = None,
	LOG_FORMAT = '%(asctime)s %(name)s\t%(levelname)s\t%(message)s',
	LOG_LEVEL = logging.INFO,
	ENABLE_BOOTSTRAP = True,
)

BOOTSTRAP_ENV = '__chefdash_bootstrap__'

if distutils.spawn.find_executable('knife'):