Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions aw_client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def load_config():
return load_config_toml("aw-client", default_config)


# Directory resolution must match the server, which writes the files we read
# (e.g. the local API key in aw-server-rust/config.toml). aw-server-rust uses
# the `dirs` crate and aw-core/aw-server use platformdirs: both honor XDG_*
# on Linux and ignore it on macOS/Windows. Do not add XDG_* handling here
# (see #119); in tests, patch these wrappers instead of setting env vars.
def _user_data_dir(appname: str) -> str:
return platformdirs.user_data_dir(appname)

Expand Down
Loading