> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# sweep がローカルにログを保存するディレクトリはどう変更できますか？

環境変数 `WANDB_DIR` を設定すると、run データのログ保存先ディレクトリを指定できます。例:

```python theme={null}
os.environ["WANDB_DIR"] = os.path.abspath("your/directory")
```

***

<Badge stroke shape="pill" color="orange" size="md">[Sweeps](/ja/support/models/tags/sweeps)</Badge>
