Skip to content

Commit

Permalink
Merge pull request #696 from torarvid/torarvid/expanduser
Browse files Browse the repository at this point in the history
Expand user home directory in config
  • Loading branch information
jaraco authored Oct 26, 2024
2 parents 24ec25d + 4504133 commit 8e2f8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,6 @@ def _load_keyring_path(config: configparser.RawConfigParser) -> None:
"load the keyring-path option (if present)"
try:
path = config.get("backend", "keyring-path").strip()
sys.path.insert(0, path)
sys.path.insert(0, os.path.expanduser(path))
except (configparser.NoOptionError, configparser.NoSectionError):
pass
1 change: 1 addition & 0 deletions newsfragments/696.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When parsing ``keyring_path`` from the config, the home directory is now expanded from ``~``.

0 comments on commit 8e2f8b2

Please sign in to comment.