imod.util.cd#

imod.util.cd(path: Union[str, pathlib.Path])[source]#

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

Examples

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