pass_typer: Use pathlib.Path instead of pathlib.PosixPath
This commit is contained in:
parent
fc3432112e
commit
ca3308dd18
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user