pushdir

jwst.lib.file_utils.pushdir(directory)[source]

Temporarily change to specified directory.

Parameters:
directoryFile-like object

Directory to change to.

Returns:
new_directoryPath

The directory changed to.