Last active
May 14, 2021 10:12
-
-
Save BlazerYoo/95ef0bfacd162f22dea34f1907e1b341 to your computer and use it in GitHub Desktop.
Rename '.PNG' files made from Snipping Tool to '.png'
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 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