Skip to content

Commit

Permalink
Add ~/.dask to list of directories to search for config
Browse files Browse the repository at this point in the history
I've run into a class of users for which `~/.config` is locked down.
Falling back to `~/.dask` seems harmless.
  • Loading branch information
mrocklin committed Sep 27, 2023
1 parent 2b45b21 commit d10da88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dask/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def _get_paths():
os.path.join(sys.prefix, "etc", "dask"),
*[os.path.join(prefix, "etc", "dask") for prefix in site.PREFIXES],
os.path.join(os.path.expanduser("~"), ".config", "dask"),
os.path.join(os.path.expanduser("~"), ".dask"),
]
if "DASK_CONFIG" in os.environ:
paths.append(os.environ["DASK_CONFIG"])
Expand Down

0 comments on commit d10da88

Please sign in to comment.