Skip to content

Commit

Permalink
fix: remove duplicate explanation how the path is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisrall committed Aug 26, 2024
1 parent 0f9b8fd commit fd8edca
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ It could look like this:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/custompython/bin
```

This way, when you type `python` in the terminal, the system will find the Python program in `/opt/custompython/bin` (the last directory) and use that one.

////

//// tab | Windows
Expand All @@ -241,12 +239,8 @@ If you say yes to update the `PATH` environment variable, then the installer wil
C:\Program Files\Python312\Scripts;C:\Program Files\Python312;C:\Windows\System32;C:\opt\custompython\bin
```

This way, when you type `python` in the terminal, the system will find the Python program in `C:\opt\custompython\bin` (the last directory) and use that one.

////

This way, when you type `python` in the terminal, the system will find the Python program in `/opt/custompython/bin` (the last directory) and use that one.

So, if you type:

<div class="termy">
Expand All @@ -259,7 +253,7 @@ $ python

//// tab | Linux, macOS

The system will **find** the `python` program in `/opt/custompython/bin` and run it.
The system will **find** the `python` program in `/opt/custompython/bin` (the last directory) and run it.

It would be roughly equivalent to typing:

Expand All @@ -275,7 +269,7 @@ $ /opt/custompython/bin/python

//// tab | Windows

The system will **find** the `python` program in `C:\opt\custompython\bin\python` and run it.
The system will **find** the `python` program in `C:\opt\custompython\bin\python` (the last directory) and run it.

It would be roughly equivalent to typing:

Expand Down

0 comments on commit fd8edca

Please sign in to comment.