Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # coding: utf-8
  2.  
  3. import os
  4.  
  5. f_out = open('exprot_codes', 'w+')
  6.  
  7. for root, dirs, files in os.walk('./leak-detection-system'):
  8. for file_name in files:
  9. file_path = os.path.join(root, file_name)
  10. if file_path.endswith('.py') or file_path.endswith('.js') or file_path.endswith('.vue') :
  11. print(file_path)
  12. with open(file_path) as f:
  13. f_out.write(f.read())
  14.  
  15. f_out.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement