from pathlib import Path import shutil out=Path(__file__).resolve().parent;private=Path('C:/Users/macbook/.config/investmoz/parques-L1-QA-20261016') for name in ['candidate-sources','candidate-build','compatibility-build']: a=(private/name).resolve();b=(private/(name+'-initial')).resolve();assert a.is_relative_to(private.resolve())and b.is_relative_to(private.resolve())and not b.exists();a.rename(b) hist=out/'historico';hist.mkdir(exist_ok=True) shutil.copy2(out/'MANIFESTO-CANDIDATA.json',hist/'MANIFESTO-CANDIDATA-INICIAL.json') exec((out/'freeze.py').read_text('utf-8'))