"""Known native database owners touched by a CBB verification operation.""" from pathlib import Path def database_directories(lmc_file, project, pcb): return tuple(dict.fromkeys(( Path(project).parent/'database', Path(pcb).parent/'database', Path(lmc_file).parent/'SymbolLibs/__ReusableBlocksSymb', ))) def unreleased_addresses(lmc_file, project, pcb): return [str(path/'cdbsvr/sAddress.adr') for path in database_directories(lmc_file, project, pcb) if (path/'cdbsvr/sAddress.adr').exists()]