Skip to content

Always change back to original directory when @tmp_directory is used

Charlie Hoy requested to merge change_back_to_original_dir into master

The purpose of this MR is to wrap the function that the user wishes to decorate with the @tmp_directory decorator within a try/finally statement to ensure that the user always returns to the cwd even if the function fails. This was recommended by @duncanmmacleod.

Merge request reports

Loading