From 33e103f3ad5ed2fff0a458a554dd801ddb9a9c0f Mon Sep 17 00:00:00 2001 From: Moses Paul R Date: Tue, 10 Dec 2024 20:46:34 +0000 Subject: [PATCH] tempdir modification for windows --- benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark.py b/benchmark.py index 9f70f76..f571b44 100644 --- a/benchmark.py +++ b/benchmark.py @@ -80,7 +80,7 @@ def main(): row = dataset[i] pdf = row["pdf"] tool_pages = {} - with tempfile.NamedTemporaryFile(suffix=".pdf", mode='wb') as f: + with tempfile.NamedTemporaryFile(dir='.', suffix=".pdf", mode='wb') as f: f.write(pdf) f.seek(0) pdf_path = f.name