import os
files = ['tests/test_app_controller_offloading.py', 'tests/test_gui_paths.py', 'tests/test_gui_phase3.py', 'tests/test_paths.py', 'tests/test_project_paths.py']
for f in files:
    with open(f, 'r', encoding='utf-8') as fh:
        content = fh.read()
    new_content = content.replace('paths.reset_resolved()', 'paths.reset_paths()')
    new_content = new_content.replace("'src.paths.reset_resolved'", "'src.paths.reset_paths'")
    if new_content != content:
        with open(f, 'w', encoding='utf-8', newline='') as fh:
            fh.write(new_content)
        print(f'updated: {f}')
    else:
        print(f'no changes: {f}')