Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python relative path

import os
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, 'relative/path/to/file/you/want')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #relative #path
ADD COMMENT
Topic
Name
4+2 =