# managed_bin_dirs

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/managed_tools/managed_bin_dirs)

Return both managed bin locations in preference order.

Read from the module globals on each call rather than frozen into a
constant, so a test (or a future runtime override) that patches `BIN_DIR`
is honored by lookup, `PATH` assembly, and install alike.

## Signature

```python
managed_bin_dirs() -> tuple[Path, ...]
```

## Returns

`tuple[Path, ...]`

The preferred installation directory followed by the profile fallback.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/managed_tools.py#L121)