Fix temporary file suffix svg -> .svg

master
Niels Giorno 2020-08-28 12:51:49 +02:00
parent 1eb7a022ff
commit deb2e031a1
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ def generate_outfile(
cachedir.mkdir(parents=True, exist_ok=True) cachedir.mkdir(parents=True, exist_ok=True)
with tempfile.NamedTemporaryFile( with tempfile.NamedTemporaryFile(
suffix="svg", suffix=".svg",
mode = "w",
dir = str(cachedir), dir = str(cachedir),
) as tmpsvg: ) as tmpsvg:
try: try: