How do I find the path of a file? I know how to find the file but what about the path?
from PIL import Image
user_path = "/Users/" + getpass.getuser())
for folder, sub_folder, files in os.walk(user_path):
for sub_fold in sub_folder:
for f in files:
if FileName == f:
print("file found")