Created
March 8, 2019 12:59
-
-
Save mrlesmithjr/998ac6b8aabc033865721e27945b162e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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