## Copyright (C) 2016 Intel Corporation## SPDX-License-Identifier: MIT#importosimportsysdeffindFile(file_name,directory):""" Search for a file in directory and returns its complete path. """forr,d,finos.walk(directory):iffile_nameinf:returnos.path.join(r,file_name)returnNonedefremove_safe(path):ifos.path.exists(path):os.remove(path)