Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pillow
#3
(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 output
 import os ... print(f"{os.getcwd()}") 
If this is the case, it can be corrected by adding the following line before line 6 os.chdir(os.path.abspath(os.path.dirname(__file__)))
thanks for your reply! I'm quite new to Python and dont really understand what you mean with look at the cwd output?
Reply


Messages In This Thread
Pillow - by juuls04 - Dec-29-2019, 09:25 PM
RE: Pillow - by Larz60+ - Dec-29-2019, 09:30 PM
RE: Pillow - by juuls04 - Dec-29-2019, 09:45 PM
RE: Pillow - by Larz60+ - Dec-30-2019, 02:09 AM
RE: Pillow - by joe_momma - Dec-30-2019, 04:55 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020