from pathlib import Path s=Path(__file__).with_name('adapt-ui.py').read_text('utf-8') head=s[:s.index("z='resources")] tail=s[s.index("p=qa/z;s=p.read_text('utf-8');old="):] exec(head+"\nz='resources/js/pages/investment/zone.tsx'\n"+tail)