Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close the temporary file before using it
An instance of NamedTemporaryFile would keep the file open in the current process, however, on Windows, a opened filed is no accessible from any other process, and thus the following commands use this file would fail to execute. To fix this, this commit ensures that the temporary file has been closed before it is used anywhere else, and removes the temporary file after everything gets done.
- Loading branch information