A Screenshot of my folder and the script that causes trouble
Hi guys, I want that my program opens the file with the PIL package "settingsicon.png" and with the usage of the path ./x but it does not work. It says "No such file or directory: './settingsicon.png'"
I try it with the libary os but it does not work ether.
import os
from PIL import Image
import customtkinter
# Get absolute file path
file_path = os.path.abspath('path/to/settingsicon.png')
# Load image
img = Image.open(file_path)
