#! /usr/bin/python3 | |
import re | |
import os | |
# Main. | |
for root, dirs, files in os.walk("."): | |
for filename in files: | |
if "plugin.properties" in filename: | |
oldName = os.path.join(root, filename) | |
newName = re.sub(r"plugin\.properties", "bundle.properties", oldName) | |
os.rename(oldName, newName) |