Skip to content

Conversation

scanny
Copy link
Contributor

@scanny scanny commented Aug 1, 2024

Summary
Remove use of tempfile.NamedTemporaryFile which attempts to access the temporary file by name. This fails on Windows. Use tempfile.TemporaryDirectory instead.

Fixes #303

@scanny scanny requested a review from christinestraub August 1, 2024 18:12
Remove use of `tempfile.NamedTemporaryFile` which attempts to access
the temporary file by name. This fails on Windows. Use
`tempfile.TemporaryDirectory` instead.
@scanny scanny force-pushed the scanny/fix-layout-on-Windows branch from 18eeca3 to b51f1f3 Compare August 1, 2024 18:15
@scanny scanny requested review from Coniferish and removed request for christinestraub August 1, 2024 18:19
Copy link
Contributor

@Coniferish Coniferish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Do we need to add any tests for this?

@scanny scanny merged commit 7804e0d into main Aug 1, 2024
@scanny scanny deleted the scanny/fix-layout-on-Windows branch August 1, 2024 18:53
@scanny
Copy link
Contributor Author

scanny commented Aug 1, 2024

It doesn't change the behavior, so I'd say no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug/reopen temp file (pdf high_res)
2 participants