Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loading image file requires absolute path

import os
# Look to the path of your current working directory
working_directory = os.getcwd()
# Or: file_path = os.path.join(working_directory, 'my_file.py')
file_path = working_directory + 'my_file.py'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #loading #image #file #requires #absolute #path
ADD COMMENT
Topic
Name
6+6 =