pass_typer: Use pathlib.Path instead of pathlib.PosixPath

This commit is contained in:
Adam Goldsmith 2022-04-08 16:26:40 -04:00
parent fc3432112e
commit ca3308dd18

View File

@ -5,10 +5,10 @@ import re
import subprocess import subprocess
from functools import partial from functools import partial
from itertools import chain from itertools import chain
from pathlib import PosixPath from pathlib import Path
PASSWORD_STORE = PosixPath( PASSWORD_STORE = Path(
os.environ.get("PASSWORD_STORE_DIR", PosixPath("~/.password-store").expanduser()) os.environ.get("PASSWORD_STORE_DIR", Path("~/.password-store").expanduser())
) )
cmd = partial(subprocess.run, capture_output=True, encoding="ascii") cmd = partial(subprocess.run, capture_output=True, encoding="ascii")