Skip to content

Commit 8e2f8b2

Browse files
authored
Merge pull request #696 from torarvid/torarvid/expanduser
Expand user home directory in config
2 parents 24ec25d + 4504133 commit 8e2f8b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

keyring/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,6 @@ def _load_keyring_path(config: configparser.RawConfigParser) -> None:
195195
"load the keyring-path option (if present)"
196196
try:
197197
path = config.get("backend", "keyring-path").strip()
198-
sys.path.insert(0, path)
198+
sys.path.insert(0, os.path.expanduser(path))
199199
except (configparser.NoOptionError, configparser.NoSectionError):
200200
pass

newsfragments/696.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When parsing ``keyring_path`` from the config, the home directory is now expanded from ``~``.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy