Advertisement
Guest User

StMichael.py

a guest
May 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import os
  2.  
  3. dirPath = os.path.dirname(os.path.realpath(__file__))
  4. fileList = os.listdir(dirPath)
  5. for fileName in fileList:
  6. if fileName[-1] == "t":
  7. os.remove(dirPath + "/" + fileName)
  8. else:
  9. pass
  10. print("Valmis")
  11.  
  12. #Lilith 30.05.2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement