@contextlib.contextmanager
def work_in(dirname=None):
    curdir = os.getcwd()
    try:
        if dirname is not None:
            os.chdir(dirname)
        yield
    finally:
        os.chdir(curdir)
We want to always return the current token on render, regardless of
dataset/ETHPy150Open audreyr/cookiecutter/cookiecutter/utils.py/work_in--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/wtforms/csrf/core.py/CSRFTokenField._value