mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-09-17 12:27:45 +00:00

**Summary** The implementation of `tempfile.NamedTemporaryFile` on Windows Python is problematic in certain situations. In particular, it raises `PermissionError` when attempting to access the temporary file by name rather than just by the file-descriptor returned by the context-manager. Remedy this situation by using `tempfile.TemporaryDirectory` instead and using a file name of our choosing. The temporary directory is deleted with all its contents when the context manager closes so the effect is the same and does not produce the error on Windows.
2 lines
49 B
Python
2 lines
49 B
Python
__version__ = "0.15.0-dev11" # pragma: no cover
|