rootpy.context.preserve_current_directory

rootpy.context.preserve_current_directory(*args, **kwds)[source]

Context manager which ensures that the current directory remains the current directory when the context is left.