Skip to content

Instantly share code, notes, and snippets.

@evilnapsis
Last active August 20, 2016 19:00
Show Gist options
  • Save evilnapsis/13f04f6dac84a4a3a3a58ddcc48f541d to your computer and use it in GitHub Desktop.
Save evilnapsis/13f04f6dac84a4a3a3a58ddcc48f541d to your computer and use it in GitHub Desktop.
import os
from shutil import copyfile
for dirname, dirnames, filenames in os.walk("./zard-old/admin/core/modules/index/view/"):
for subdirname in dirnames:
#print(os.path.join(dirname, subdirname))
src=os.path.join(dirname, subdirname)+"/widget-default.php"
dst=dirname+""+subdirname+"-view.php"
if os.path.isfile(src):
copyfile(src, dst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment