Skip to content

Expand user home directory in config#696

Merged
jaraco merged 2 commits intojaraco:mainfrom
torarvid:torarvid/expanduser
Oct 26, 2024
Merged

Expand user home directory in config#696
jaraco merged 2 commits intojaraco:mainfrom
torarvid:torarvid/expanduser

Conversation

@torarvid
Copy link
Copy Markdown
Contributor

When reading the keyring_path from the config file, this would previously fail:

keyring_path=~/foo/bar

(it would need to be /home/peterpan/foo/bar or similar instead)

This commit fixes this issue by wrapping the path in os.path.expanduser

torarvid and others added 2 commits September 26, 2024 10:29
When reading the keyring_path from the config file, this would
previously fail:

keyring_path=~/foo/bar

(it would need to be /home/peterpan/foo/bar or similar instead)

This commit fixes this issue by wrapping the path in os.path.expanduser
@jaraco jaraco merged commit 8e2f8b2 into jaraco:main Oct 26, 2024
@torarvid torarvid deleted the torarvid/expanduser branch October 26, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants