imod.util.cd#

imod.util.cd(path: str | Path)[source]#

Change directory, and change it back after the with block.

Examples

>>> with imod.util.context.cd("docs"):
        do_something_in_docs()