Skip to content

Conversation

@alcarney
Copy link
Member

@alcarney alcarney commented Jan 1, 2025

This adds support for a ${venv:<path>} configuration variable to the value of esbonio.sphinx.pythonCommand. It will expand into <path>/bin/python or <path>/Scripts/python.exe depending on the current OS. Both relative and absolute paths are supported.

When a relative path is given, it will be treated as relative to the cwd of the configuration scope, which by default will be the location of the pyproject.toml file.

Closes #914

@alcarney alcarney changed the title Implement ${venv:<path>} config variable Implement a ${venv:<path>} config variable Jan 1, 2025
@alcarney alcarney force-pushed the venv-var branch 9 times, most recently from 7c930aa to ac5a558 Compare January 3, 2025 20:23
@alcarney alcarney merged commit c27bd16 into swyddfa:develop Jan 4, 2025
13 checks passed
@alcarney alcarney deleted the venv-var branch January 4, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support relative paths in pyproject.toml's [tool.esbonio.sphinx.pythonCommand]

1 participant