Skip to content

Instantly share code, notes, and snippets.

@BlazerYoo
Last active May 14, 2021 10:12
Show Gist options
  • Save BlazerYoo/95ef0bfacd162f22dea34f1907e1b341 to your computer and use it in GitHub Desktop.
Save BlazerYoo/95ef0bfacd162f22dea34f1907e1b341 to your computer and use it in GitHub Desktop.
Rename '.PNG' files made from Snipping Tool to '.png'
import os
for f in os.listdir():
if f.endswith('.PNG'):
os.rename(f,os.path.splitext(f)[0]+'.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment