We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24ec25d + 4504133 commit 8e2f8b2Copy full SHA for 8e2f8b2
keyring/core.py
@@ -195,6 +195,6 @@ def _load_keyring_path(config: configparser.RawConfigParser) -> None:
195
"load the keyring-path option (if present)"
196
try:
197
path = config.get("backend", "keyring-path").strip()
198
- sys.path.insert(0, path)
+ sys.path.insert(0, os.path.expanduser(path))
199
except (configparser.NoOptionError, configparser.NoSectionError):
200
pass
newsfragments/696.feature.rst
@@ -0,0 +1 @@
1
+When parsing ``keyring_path`` from the config, the home directory is now expanded from ``~``.
0 commit comments