Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use xdg_config_home on unix instead of hard-coded path #167

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion confuse/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import optparse
import platform
import pkgutil
from xdg import BaseDirectory


UNIX_DIR_FALLBACK = '~/.config'
UNIX_DIR_FALLBACK = BaseDirectory.xdg_config_home
WINDOWS_DIR_VAR = 'APPDATA'
WINDOWS_DIR_FALLBACK = '~\\AppData\\Roaming'
MAC_DIR = '~/Library/Application Support'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ author-email = "[email protected]"
home-page = "https://github.com/beetbox/confuse"
requires = [
"pyyaml"
"pyxdg"
]
description-file = "README.rst"
requires-python = ">=3.6"
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PyYAML
PyYAML
pyxdg