Skip to content

Instantly share code, notes, and snippets.

@Saigesp
Created October 4, 2019 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saigesp/e46b31bc5224d74ea6e7adb16c28254f to your computer and use it in GitHub Desktop.
Save Saigesp/e46b31bc5224d74ea6e7adb16c28254f to your computer and use it in GitHub Desktop.
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