I'm trying to set a path to an icon in my project.
"/icons/currency/USD.png"
But I'm getting an error:
FileNotFoundError: [Errno 2] No such file or directory: 'icons/currency/USD.png'
If I set the path to "/icons/USD.png"
everything is work.
but I don't want all my icons will be in one folder so I open currency folder
to separate it from other icons.
my project folders structure is:
project folder -> name_of_project.py , icons folder
icons folder -> currency folder -> USD.png
What is the correct way to configure this relative path ?
/is referring to the root (Linux), root of a drive (Windows) or root of webserver. If/icons/USD.pngworks, that means a) you have not moved the file into the subfolder (for local files) or b) you have some caching issues (for Webserver). Please give more information about your OS and the project type (web, desktop or console).