PipenvPath
Automatically add pipenv virtual environment paths to th Sublime Text 3 environment.
Details
Installs
- Total 974
- Win 454
- OS X 279
- Linux 241
Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 4 | 3 | 2 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 4 | 2 | 0 | 0 | 1 | 2 | 1 | 1 | 1 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 3 | 2 | 1 |
OS X | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 0 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 | 0 | 2 | 2 | 2 | 1 | 0 |
Linux | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 2 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
PipenvPath
Automatically add pipenv virtual environment paths to the Sublime Text 3 environment.
Pipenv is a wonderful packaging and dependency management tool for Python. However, while it manages virtual environments automatically, the name and thus the path of the venvs are random/hashed. One could add the venv path manually on a per-project basis using the Environment Settings plugin, though, this is tedious.
PipenvPath will automatically add the venv path managed by Pipenv to the PATH variable of the current project, which is yielded by the pipenv --venv
command. This should work out of the box without any configuration, assuming that the Pipenv executable path is already provided by the PATH variable. Otherwise, the location of the Pipenv executable can be specified in Preferences.sublime-settings
. A typical setup might look like this:
"pipenv_path":
{
"linux": "$HOME/.local/bin/pipenv",
"windows": "%HOMEPATH%\\AppData\\Roaming\\Python\\Python37\\Scripts\\pipenv.exe"
}
NOTE: You can also use the "osx"
key (see the sublime.platform() documentation).
Installation
Clone this repository to your Sublime Text 3 Packages folder. You can find it by using the menu: Preferences > Browse Packages…
Credits
Based on the Environment Settings plugin by Daniele Niero.