add expand_user to Config

This commit is contained in:
2021-10-23 05:05:46 +01:00
parent 441a26127f
commit 70911f98b0

View File

@@ -36,7 +36,7 @@ class Config:
""" """
self.header_variable = header_variable self.header_variable = header_variable
self.config_path = ( self.config_path = (
pathlib.Path(config_path) pathlib.Path(config_path).expanduser()
if config_path if config_path
else pathlib.Path.home() / ".config" else pathlib.Path.home() / ".config"
) )