Skip to content

Commit

Permalink
fix: Avoid using cache dir for temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Sep 30, 2024
1 parent 8115b9a commit 01c7a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svgcheck/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def main():
wp.color_threshold = options.grey_level

if len(args) < 1:
with tempfile.NamedTemporaryFile(dir=options.cache, delete=False, mode="w+t") as tmp_file:
with tempfile.NamedTemporaryFile(delete=False, mode="w+t") as tmp_file:
data = sys.stdin.read()
tmp_file.write(data)
source = tmp_file.name
Expand Down

0 comments on commit 01c7a0e

Please sign in to comment.