nip.utils.os.change_directory

nip.utils.os.change_directory#

nip.utils.os.change_directory(new_path: str)[source]#

Context manager to temporarily change the current working directory.

Parameters:

new_path (str) – The path to change to.

Raises:

FileNotFoundError – If the specified path does not exist.