Dec-29-2019, 09:45 PM
(Dec-29-2019, 09:30 PM)Larz60+ Wrote: You are probably not in the same directory as the image file, even though you mayy think you are. import os and look at cwd outputthanks for your reply! I'm quite new to Python and dont really understand what you mean with look at the cwd output?import os ... print(f"{os.getcwd()}")If this is the case, it can be corrected by adding the following line before line 6os.chdir(os.path.abspath(os.path.dirname(__file__)))