diff options
author | Etenil <dev@etenil.net> | 2017-10-09 10:00:11 +0100 |
---|---|---|
committer | Etenil <dev@etenil.net> | 2017-10-09 10:00:11 +0100 |
commit | d5268b858d9ac9377480248519a5749964236399 (patch) | |
tree | aed01d8798cb3121308405459d4656de7d76a99a /README.md | |
parent | 7818577867f0a266de6e779c268abe3c5f13697d (diff) |
Added ability to configure the python version.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -12,11 +12,21 @@ Put the `venvworkon.sh` script somewhere and source it in your ## Usage The script only supports one usage mode: - $ workon [environment] + $ workon [environment] [python version] If *environment* is not provided, then the list of existing venvs will be printed instead. +## Choosing the python version +The python you want to use must exist in the `$PATH` and start with +`python`. Pass the version suffix of the executable as the second +argument to the script. It'll be translated like so when creating +the venv: + +``` +workon foo 3.6 => python3.6 -m venv $WORKON_HOME/foo +``` + ## Where venvs are created When `workon` is called, venvs are created or loaded from the `$HOME/.venv` folder by default. |