Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --project argument to run a command from a project #7603

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

charliermarsh
Copy link
Member

Summary

uv run --project ./path/to/project now uses the provided directory as the starting point for any file discovery. However, relative paths are still resolved relative to the current working directory.

Closes #5613.

Using Python 3.12.[X] interpreter at: [PYTHON-3.12]
Creating virtual environment at: .venv
Creating virtual environment at: project/.venv
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct... because the project environment is at project/.venv relative to the current working directory.

@charliermarsh charliermarsh added enhancement New feature or request cli Related to the command line interface labels Sep 20, 2024
@charliermarsh charliermarsh force-pushed the charlie/project branch 3 times, most recently from f0e57e0 to 9e805e6 Compare September 20, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--directory should resolve relative paths relative to current working directory
1 participant