PipenvPath
Automatically add pipenv virtual environment paths to th Sublime Text 3 environment.
Details
Installs
- Total 3K
- Win 2K
- Mac 840
- Linux 714
Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.