Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Created March 8, 2019 12:59
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 mrlesmithjr/998ac6b8aabc033865721e27945b162e to your computer and use it in GitHub Desktop.
Save mrlesmithjr/998ac6b8aabc033865721e27945b162e to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import shutil
for root, dirs, files in os.walk(os.getcwd()):
if 'venv' in dirs:
print('Found venv in {0}'.format(root))
folder = os.path.join(root, 'venv')
shutil.rmtree(folder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment