logoalt Hacker News

kristianpyesterday at 12:56 AM1 replyview on HN

Is the environment located in the .venv folder under the same directory as the script?


Replies

knowaveragejoeyesterday at 5:12 AM

The venv is created and then discarded once the script finishes execution. This is well suited to one-off scripts like what is demonstrated in the article.

In a larger project you can manage venvs like this using `uv venv`, where you end up with a familiar .venv folder.