mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-27 00:10:54 -05:00
Compare commits
1 commit
2b71f2bd03
...
07185e6663
Author | SHA1 | Date | |
---|---|---|---|
|
07185e6663 |
1 changed files with 15 additions and 1 deletions
|
@ -262,7 +262,21 @@ POST_MESSAGE_CONFIGURE_FISH = """
|
||||||
You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths`
|
You can execute `set -U fish_user_paths {poetry_home_bin} $fish_user_paths`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
POST_MESSAGE_CONFIGURE_WINDOWS = """"""
|
POST_MESSAGE_CONFIGURE_WINDOWS = """
|
||||||
|
You can choose and execute one of the following commands in PowerShell:
|
||||||
|
|
||||||
|
A. Appends the bin directory to your user environment variable `PATH`:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";{poetry_home_bin}", "User")
|
||||||
|
```
|
||||||
|
|
||||||
|
B. Tries to appends the bin directory to PATH every when you run PowerShell (>=6 recommended):
|
||||||
|
|
||||||
|
```
|
||||||
|
echo 'if (-not (Get-Command poetry -ErrorAction Ignore)) {{ $env:Path += ";{poetry_home_bin}" }}' | Out-File -Append $PROFILE
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
class PoetryInstallationError(RuntimeError):
|
class PoetryInstallationError(RuntimeError):
|
||||||
|
|
Loading…
Reference in a new issue