From deb2e031a1bd2d60ba1eec83d94726ddbc92178c Mon Sep 17 00:00:00 2001 From: Niels Giorno Date: Fri, 28 Aug 2020 12:51:49 +0200 Subject: [PATCH] Fix temporary file suffix svg -> .svg --- lokrez/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lokrez/export.py b/lokrez/export.py index 5a80f91..09a6b0d 100644 --- a/lokrez/export.py +++ b/lokrez/export.py @@ -52,7 +52,8 @@ def generate_outfile( cachedir.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile( - suffix="svg", + suffix=".svg", + mode = "w", dir = str(cachedir), ) as tmpsvg: try: