Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import os
- ws = "."
- rasters = []
- walk = os.walk(ws, topdown=True)
- for root, dirs, files in walk:
- if os.path.split(root)[-1] == "codewarz":
- for filename in files:
- if os.path.splitext(filename)[-1] == '.py':
- rasters.append(os.path.join(root, filename))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement