tempfile.TeventDirectory контекстный менеджер в Python 2.7

Есть ли способ создать временный каталог в менеджере контекста с Python 2.7?

with tempfile.TemporaryDirectory() as temp_dir:
    # modify files in this dir

# here the temporary diretory does not exist any more.

Ответы на вопрос(2)

Ваш ответ на вопрос