Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. # Start from the repository root.
  4. cd ./$(git rev-parse --show-cdup)
  5.  
  6. # Delete .pyc files and empty directories.
  7. # These files become a problem when switching branches
  8. # if pycache is there with pyc even as an empty folder it will show up
  9. # on another branch under vscode, this fixes that.
  10. # @kodaman2
  11. find . -name "*.pyc" -delete
  12. find . -type d -empty -delete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement