SHARE
TWEET

Untitled

a guest Oct 16th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top