Skip to content

Commit

Permalink
fix dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 30, 2023
1 parent ac740a7 commit b3b2db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyconify/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def svg_path(

# make a temporary file
file_prefix = f"pyconify_{'-'.join(key)}".replace(":", "-")
fd, tmp_name = tempfile.mkstemp(prefix=file_prefix, suffix=".svg", dir=str(dir))
fd, tmp_name = tempfile.mkstemp(prefix=file_prefix, suffix=".svg", dir=dir)
with os.fdopen(fd, "wb") as f:
f.write(svg_bytes)

Expand Down

0 comments on commit b3b2db4

Please sign in to comment.