Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created October 12, 2016 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/16a7106fd55650cfe5436de1bbd851c7 to your computer and use it in GitHub Desktop.
Save zeffii/16a7106fd55650cfe5436de1bbd851c7 to your computer and use it in GitHub Desktop.
glob python files in dir
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