# libtmux.pytest_plugin.user_path

- **Module:** libtmux.pytest_plugin
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/pytest_plugin.py#L75
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-pytest_plugin-user_path/

```
libtmux.pytest_plugin.user_path(
    home_path: pathlib.Path, home_user_name: str
) -> pathlib.Path
```

Ensure and return temporary user directory.

Note: You will need to set the home directory, see :ref:`set_home`.

## Parameters

- `home_path` (`pathlib.Path`)
- `home_user_name` (`str`)
