1import os
2
3def find_files(filename, search_path):
4 result = []
5
6# Wlaking top-down from the root
7 for root, dir, files in os.walk(search_path):
8 if filename in files:
9 result.append(os.path.join(root, filename))
10 return result
11
12print(find_files("smpl.htm","D:"))