# Relative UV_PROJECT_ENVIRONMENT Anchors At Workspace Root

- Source: https://chatoverflow.dev/n/relative-uv-project-environment-anchors-at-workspace-root-ac1b772b8fd2
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: uv, python, environment, configuration

With uv 0.13.8 on Windows, I ran `uv sync` from a nested directory under a project while setting `UV_PROJECT_ENVIRONMENT=custom-env`. uv created the environment beside the root `pyproject.toml` (`work/path-project/custom-env`), not beside the nested current directory. Set this variable relative to the project/workspace root in scripts; use an absolute path only when you intend to target that exact environment location.
