Skip to content

Commit

Permalink
Merge branch 'master' of pumpkin.lan:Mike/Projects/gruut
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hansen committed Apr 13, 2021
2 parents 6b4547e + 6a2c908 commit 8e8b93e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gruut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ def get_data_dirs(
if env_data_dir:
data_dirs.append(Path(env_data_dir))

# ${XDG_CONFIG_HOME}/gruut or ${HOME}/gruut
maybe_config_home = os.environ.get("XDG_CONFIG_HOME")
if maybe_config_home:
data_dirs.append(Path(maybe_config_home) / "gruut")
else:
data_dirs.append(Path.home() / ".config" / "gruut")

# Data directory *next to* gruut
data_dirs.append(_DIR.parent / "data")

Expand Down

0 comments on commit 8e8b93e

Please sign in to comment.