This batch scripted tool will auto activates/deactivates/inits your python virtual environment just by using
CDV! Works like normalCD. for help usecdv -h
Install , open terminal and use it! CDV Rightaway! Here to download v0.1.4
- Feature: now the tool auto deactivates the venv if you go outside parent DIR!
- Feature: no need to
CDVto parent project dir first to activate the venv anymore!CDVinto any sub dirs in your repo/project and the venv will start rightaway! - Feature: now
CDVcan use paths with spaces just likeCDthough it's not recommended (CDVdoesn't anymore crash from using paths with whitechars!) - Fix paths/shell args with spaces/whitecharacters known bugs.
- Fix shell prompt redundent prints. and multiple uneeded
CDcalls. and uneeded extra venv deactivations/activations. - Fix file encoding is not same as configured pagecode.
- Fix all known bugs caused by misusing of local scoping endlocal,setlocal and vanishing vars valuables.
- Fix now almost all vars processes is gaurded with double quotes now.
- Fix critical hidden bug when using -D flag to delete auto-venv config and venv DIR due to scoping/ACLs issues
- Quality used
%PROGRAMDATA%\CDV\Tempdir to be used for any temp files instead of usingC:\Users\%USERNAME%\dir. - Quality help is enhanced: there is a separate help label and
help.batif needed - Quality better cleaning of temp vars.
- Quality made sure to use win batch native commands like
delinstead ofrmetc... - Quality now tool switches/shell args are case-insensetive which is more coherent with other shell tools approach
- Quality some internal commands is now turned silent /Q
- long awaited branch and commit 'd291ed5' is now ready , + refactoring and more ...
- Full Changelog: https://github.com/orsnaro/CDV-windows-autoenv-tool/compare/V0.1.3...V0.1.4
-
First Install latest version via cdv.msi (latest)
-
if using cmder console and you want to totally override
cdby cdv ( you can re-tract the override any time )alias cd=cdv $*
now
cdhas allcdvfeatures!- to re-tract
unalias cd -
cdv -h
-
cdv <optional-path> -i
-
with out any parameters its just similar to
cduntil you cdv'ed to one of your configured projects it will auto activate the venv for you!cdv path- to activate current project venv
cdv
-
cdv <optional-path> -d
-
cdv <optional-path> -q
- TODO: Auto detect
pyproject.tomlorrequirements.txtto auto suggest creating a new venv instead of usingCDV -iwhen creating new venv for first time - TODO: Instead of linking project to its corresponding venv using the
.is_autoVenvfile content or_venvsuffix it'll use simple .yaml or sqlite map to determine which proj is for which venv - TODO: Refactor into labels
- TODO: write a powershell version
-
(in testing) no need to download the installer for every new version ( just reinstall and it will update to latest release )
For more scripts that could be usefull visit: bin