<reponame>tzongw/werkzeug
import os
import sys

from werkzeug import _reloader
from werkzeug.wrappers import Request
from werkzeug.wrappers import Response

# Tox puts the tmp dir in the venv sys.prefix, patch the reloader so
# it doesn't skip real_app.
if "TOX_ENV_DIR" in os.environ:
    _reloader._ignore_prefixes = tuple(
        set(_reloader._ignore_prefixes) - {sys.prefix, sys.exec_prefix}
    )


@Request.application
def app(request):
    import real_app

    return Response.from_app(real_app.app, request.environ)


kwargs = {"use_reloader": True, "reloader_interval": 0.1}

import os
import sys

from werkzeug import _reloader
from werkzeug.wrappers import Request
from werkzeug.wrappers import Response

# Tox puts the tmp dir in the venv sys.prefix, patch the reloader so
# it doesn't skip real_app.
if "TOX_ENV_DIR" in os.environ:
    _reloader._ignore_prefixes = tuple(
        set(_reloader._ignore_prefixes) - {sys.prefix, sys.exec_prefix}
    )


@Request.application
def app(request):
    import real_app

    return Response.from_app(real_app.app, request.environ)


kwargs = {"use_reloader": True, "reloader_interval": 0.1}
# Tox puts the tmp dir in the venv sys.prefix, patch the reloader so # it doesn't skip real_app.