I am creating a program and in this program, my folder structure is something like this
-> images
-> image_1.png
-> test.py
In test.py, I need to access image_1.png via a relative path such as images/image_1.png in Linux. But in windows, it's images\image_1.png.
From my research, I have found out that / also works in windows as a path separator. Is this applicable to this case? Do I need to use os.sep or something like that, or in all relative paths / will work fine as a path separator in both windows and Linux?