Skip to content

Commit

Permalink
Use tempfile to get temp dir, rather than assuming /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
crmarsh committed Feb 20, 2024
1 parent e321800 commit b42ebc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib2fas/_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import hashlib
import json
import logging
import tempfile
import time
import warnings
from pathlib import Path
Expand Down Expand Up @@ -77,7 +78,7 @@ class KeyringManager:
"""

appname: str = ""
tmp_file = Path("/tmp") / ".2fas"
tmp_file = Path(tempfile.gettempdir()) / ".2fas"

def __init__(self) -> None:
"""
Expand Down

0 comments on commit b42ebc2

Please sign in to comment.