Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- import os
- f_out = open('exprot_codes', 'w+')
- for root, dirs, files in os.walk('./leak-detection-system'):
- for file_name in files:
- file_path = os.path.join(root, file_name)
- if file_path.endswith('.py') or file_path.endswith('.js') or file_path.endswith('.vue') :
- print(file_path)
- with open(file_path) as f:
- f_out.write(f.read())
- f_out.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement