Last active
August 20, 2016 19:00
-
-
Save evilnapsis/13f04f6dac84a4a3a3a58ddcc48f541d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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