mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
10 lines
217 B
Python
10 lines
217 B
Python
import glob, shutil, re
|
|
|
|
s = re.compile(r"(?P<icon>\w+)")
|
|
|
|
for f in glob.glob('*.png'):
|
|
simplename = s.match(f).groupdict()
|
|
sim = "%s.png" % simplename['icon']
|
|
if sim != f:
|
|
shutil.copyfile(f, sim)
|