# prepend_managed_bin_to_path

> **Function** in `deepagents_code`

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

Idempotently prepend `BIN_DIR` to `os.environ["PATH"]`.

Safe to call on every startup. Callers do not need to check whether
the directory exists — adding a non-existent directory to `PATH` is
harmless and matches behavior of common version managers.

## Signature

```python
prepend_managed_bin_to_path() -> None
```

---

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