Skip to content

Commit

Permalink
Move to activating virtual env section
Browse files Browse the repository at this point in the history
  • Loading branch information
Savannah Ostrowski authored and radoering committed May 8, 2023
1 parent ab7bf99 commit 8e396f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ To take advantage of this, simply activate a virtual environment using your pref
any Poetry commands that expect to manipulate an environment.
{{% /note %}}

If you'd like to prevent `poetry shell` from modifying your shell prompt on virtual environment activation, you should
set `VIRTUAL_ENV_DISABLE_PROMPT=1` as an environment variable before running the command.

### Using `poetry run`

To run your script simply use `poetry run python your_script.py`.
Expand Down Expand Up @@ -158,6 +155,9 @@ To get the path to your virtual environment run `poetry env info --path`.
You can also combine these into a one-liner, such as `source $(poetry env info --path)/bin/activate`
(`& ((poetry env info --path) + "\Scripts\activate.ps1")` in Powershell).

If you'd like to prevent `poetry shell` from modifying your shell prompt on virtual environment activation, you should
set `VIRTUAL_ENV_DISABLE_PROMPT=1` as an environment variable before running the command.

To deactivate this virtual environment simply use `deactivate`.

| | POSIX Shell | Windows (PowerShell) | Exit/Deactivate |
Expand Down

0 comments on commit 8e396f4

Please sign in to comment.