1"""
2Create an XDG function to get the config dir
3"""
4
5import os
6
7
8def xdg_config_dir():
9    """
10    Check xdg locations for config files
11    """
12    xdg_config = os.getenv("XDG_CONFIG_HOME", os.path.expanduser("~/.config"))
13    xdg_config_directory = os.path.join(xdg_config, "salt")
14    return xdg_config_directory
15