# managed_config_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/paths/managed_config_path)

Return the fixed managed-config path for the current operating system.

For display and error messages. Anything that decides whether policy is
enforceable wants `resolve_managed_path`.

## Signature

```python
managed_config_path(
    *,
    platform: str | None = None,
    environ: Mapping[str, str] | None = None,
) -> Path
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `platform` | `str \| None` | No | Override the detected platform; intended for tests. (default: `None`) |
| `environ` | `Mapping[str, str] \| None` | No | Test-only injection point for the Windows branch. See `resolve_managed_path`. (default: `None`) |

## Returns

`Path`

The managed-config path for the platform.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/configuration/paths.py#L145)