@contextmanager
def chdir(new_dir):
    current_dir = os.getcwd()
    os.chdir(new_dir)
    yield
    os.chdir(current_dir)
Sets the previous page to this one.
dataset/ETHPy150Open koenbok/Cactus/cactus/utils/filesystem.py/chdir--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/ui_wizard.py/UIWizardPage.SetPrev