path = 'tests/test_core.cpp'
with open(path, 'r', encoding='utf-8') as f:
    c = f.read()
target = 'std::cout << "DEBUG: pExplore.priority=" << pExplore.priority << " vs " << bot_priority::EXPLORE << " name=" << pExplore.priorityName << std::endl; '
c = c.replace(target, '', 1)
with open(path, 'w', encoding='utf-8') as f:
    f.write(c)
print('Cleaned up debug print in test_core.cpp')
