Download this file
1 2 3 4 5 6 7 8 9
import os if __name__ == "__main__": print "Removing .pyc files.." for root, dirs, files in os.walk("."): for file in files: if file.endswith(".pyc"): os.remove(root + "/" + file) print "Done"