Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

image.open no such file or directory

import os.path

script_dir = os.path.dirname(os.path.abspath(__file__))

im = Image.open(os.path.join(script_dir, 'Desert.jpg'))

# OR

im = Image.open(os.path.join(script_dir, '../assets/Desert.jpg'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #directory
ADD COMMENT
Topic
Name
7+5 =