Python Forum

Full Version: tkinter and image paths
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the project I'm working on, I have to put full paths to images starting from the root directory. Does tkinter not start the path in the working directory?
Example (/home/user/path/to/image.png)
I don't understand why ./image.png does not work. Image.png is in the same directory. Is it because it's not in the python path?
If it is in the same directory, you should be able to just refer to the file by its name "image.png" (no need for the './' in front of it).
It was the editor I am using. If I run the script in shell it works as expected. I guess atom treats path differently.