openforcefield
openforcefield.utils.utils.
temporary_cd
Context to temporary change the working directory. Parameters ———- dir_path : str
The directory path to enter within the context
>>> dir_path = '/tmp' >>> with temporary_cd(dir_path): ... pass # do something in dir_path