from pathlib import Path import json import re name_uuid = {} uuid_map = {} for dir in Path(__file__).parent.iterdir(): if not dir.is_dir(): continue old_name = dir.name new_name = re.sub(r'(?