Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script with useful actions to work with virtualenvwrapper on windows
set "VIRTUAL_ENV=C:\Users\YOURUSER\Envs\YOURENVNAME"
:: Set variables
set "ENVIRONMENT=develop"
:: Change directory
cd C:\Users\YOURPROJECTPATH
:: Remove __pycache__ folders
for /d /r ".\API" %%a in (__pycache__) do if exist "%%a" rmdir /s /q "%%a"
:: Remove *.pyc files
del /s /q *.pyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.