Skip to main content

Timeline for answer to Run python script with uv with path by Hericks

Current License: CC BY-SA 4.0

Post Revisions

4 events
when toggle format what by license comment
Jan 30, 2025 at 7:21 comment added Fred OK. Understand. I thought it is like --take-the-path-you-sit-in-as-your-project which would avoid the double path entry.
Jan 27, 2025 at 16:56 comment added Hericks @Fred --project just indicates that the parameter is used. Afterwards you pass the path to the project. Finally, the path to the script is still required of course. This gives the syntax uv run --project /path/to/project /path/to/script.
Jan 27, 2025 at 16:49 comment added Fred I tried uv run --project /path/to/my_script.py uv run --project /path/to my_script.py but only uv run --project /path/to/ /path/to/my_script.py worked. This syntax looks quite silly but better than nothing. Thanks
Jan 27, 2025 at 11:41 history answered Hericks CC BY-SA 4.0