Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import os
  4.  
  5. ws = "."
  6.  
  7. rasters = []
  8. walk = os.walk(ws, topdown=True)
  9. for root, dirs, files in walk:
  10.     if os.path.split(root)[-1] == "codewarz":  
  11.         for filename in files:
  12.             if os.path.splitext(filename)[-1] == '.py':
  13.                 rasters.append(os.path.join(root, filename))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement