piglot.utils.assorted.change_cwd

change_cwd(path: str)[source]

Context manager to temporarily change the current working directory.

Adapted from https://stackoverflow.com/a/75049063

Parameters

pathstr

New working directory.