Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually get
XDG_CONFIG_HOME
and drop pyxdg (#102)
Drop `pyxdg` as dependency and instead get `XDG_CONFIG_HOME` manually. The same way is being used as `pyxdg` does: https://gitlab.freedesktop.org/xdg/pyxdg/-/blob/bd999c1c/xdg/BaseDirectory.py#L37-L38 There is a name clash between the two packages `xdg` and `pyxdg`. See: https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/24 As only that one environment variable is being used from the library it can just as good be expanded manually. This solves the confusion and problems for users who have both installed and it also reduces the dependency footprint. Also use `os.path.join` for `config_file`.
- Loading branch information
Showing
4 changed files
with
8 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters