# libtmux.common._format_path_arg

- **Module:** libtmux.common
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/common.py#L295
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-common-_format_path_arg/

```
libtmux.common._format_path_arg(
    value: StrPath | Format,
) -> str
```

Render a start directory; a :class:`Format` reaches tmux as written.

A path has ``~`` expanded first; a format is left to tmux.

```python
>>> _format_path_arg("/tmp/a#b")
'/tmp/a#{a:35}b'
>>> _format_path_arg(Format("#{pane_current_path}"))
'#{pane_current_path}'
```

## Parameters

- `value` (`StrPath | Format`)
