Created
October 12, 2016 15:25
-
-
Save zeffii/16a7106fd55650cfe5436de1bbd851c7 to your computer and use it in GitHub Desktop.
glob python files in dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os | |
pathname = r"C:\Users\zeffi\Desktop" | |
files = "*.svg" | |
for file in glob.glob(os.path.join(pathname, files)): | |
print(file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment