Config: Detect user config using os.path.expanduser()

Instead of `$HOME`, since the former works when `$HOME` is not set.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828033#10
This commit is contained in:
Adrien Vergé
2016-06-24 18:41:45 +02:00
parent 8e6e851c5b
commit 8c839a20c2
2 changed files with 4 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ following locations (by order of preference):
- ``.yamllint`` in the current working directory
- ``$XDG_CONFIG_HOME/yamllint/config``
- ``$HOME/.config/yamllint/config``
- ``~/.config/yamllint/config``
Finally if no config file is found, the default configuration is applied.